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 -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -