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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top