Get precompiler value in C#

  • Thread starter Thread starter knurgb
  • Start date Start date
K

knurgb

Hello,

Is it possible to read precompiled value in C# code?

E.g.: in VS define sumbol VER="1.1.1.*"
and in C# code read this value to some parameter.

Thanks,
Grzegorz
 
If you're talking about preprocessor statements, no. These are preprocessor
directives, used for conditional compilation. After compilation, they do not
exist in the code generated.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Shooter
http://unclechutney.blogspot.com

A man, a plan, a canal, a palindrome that has.. oh, never mind.
 
Plus in C# they can't be assigned values. They can only be defined or
not defined.


Mattias
 
Back
Top