Now I presume that the user was looking to see what you can do with "defines" in C#. Well if you compare them to C #defines then not much at all because in C you define macros that are substituted by the pre-processor to expand the code at compile time. In C#, defines are used to indicate what code to compile when the relevand command is passed in via the "Conditional Compilation symbols".
I don't think C# 2.0 changes this, I am not too sure about C# 3.0 though.
Technorati Tags |
google [feed], conditional compilation [feed], pre processor [feed], macros [feed], symbols [feed], c# [feed], .Net [feed], define [feed], compile [feed] |
Related Wikipedia Documents |
C preprocessor, Generic programming, Wikipedia: C Sharp programming language, C Sharp, Anders Hejlsberg, Microsoft .NET, .net, Wikipedia: Compile time, Compiler, Just-in-time compilation |
My Related Documents |
C#, .Net Framework: Just Looking at my Logs |
Related Amazon Books |
Programming C#: (UK)/(USA), Professional ASP.NET 2: (UK)/(USA), ASP.NET Unleashed (Unleashed S.): (UK)/(USA), ASP.NET 2.0 A Developer's Notebook: (UK)/(USA), Windows Forms Programming in C#: (UK)/(USA) |