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

How to Create Master-Details view using Asp.Net MVC framework -

delphi - Mouseover hint for TChart series value -

c++ - Linux and clipboard -