C# (Sharp) Programming Language Question:
Download Questions PDF

Does C# support C type macros?

Answer:

No. C# does not have macros. Keep in mind that what some of the predefined C macros (for example, __LINE__ and __FILE__) give you can also be found in .NET classes like System.Diagnostics (for example, StackTrace and StackFrame), but they'll only work on debug builds.

Download C# (Sharp) Programming Language Interview Questions And Answers PDF

Previous QuestionNext Question
Does C# support parameterized properties?Can you store multiple data types in System.Array?