i have looked in .NET's help and searched on this forum before i ask.
q) is it possible to use the preproccesor #define used in C & C++ in C#
ie #define MOVE 0
if not how do i implement that construct in C# please
luigi
i have looked in .NET's help and searched on this forum before i ask.
q) is it possible to use the preproccesor #define used in C & C++ in C#
ie #define MOVE 0
if not how do i implement that construct in C# please
luigi
You didn't search very well. This was my very first search result: http://msdn.microsoft.com/library/de...clrfdefine.asp
With higher-level, more object-oriented languages like C++ and C#, it's better to use const's anyway.
hi sean
thanks for your reply, i found that page on MSDN all ready which describes how in C# you use define with only one symbol
however my question was how do i implement the #define symbol symbol
not C# way of #define symbol
as you mention constants i guess thats the answer
luigi
C++'s #define is used a lot for macros. In a well designed OOP approach, you don't need macros, and they can really confuse things. So the C# designers decided to leave it out.