C# Const field in abstract class -


I'm having trouble declaring a single console field in an abstract class. Why is it so?

Edit

I should have been clear that my problem is that my classes can not see the classes Constant field:

  protected const string prefix = "Dynfrm_";  

If I remove the const keyword, then I can get it from a grandchild.

Unless you initiate it in the declaration, then there should be no issue. What is the error message you are receiving?


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -