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

SQL/PHP: Table design question -

NHibernate Passing Session to the Repository -

asp.net - How do I pass login ID as parameter to SharePoint login page? -