C# const protected vs internal
Advertisements Why "internal const" can be overridden in child class but "protected const" can’t? Sample code: class A { internal const string iStr = "baseI"; protected const string pStr = "baseP"; void foo() { string s = B.iStr; //childI string t = B.pStr; //baseP } } class B : A { internal new const string… Read More C# const protected vs internal