Is it more efficient to use variables or constants?
It's slightly more efficient to use constants rather than variables because constants do not have their own storage location in memory--they are simply hard-coded into the MSIL. For more information, check out this link:
http://msdn.microsoft.com/msdnmag/issues/04/04/NETMatters/default.aspx
© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 10/06/04
Comment or report problem with topic
