Thanks this was useful..
a_ravindra
Posts
-
How to use Internal , Protected Internal across Assemblies.. -
How to use Internal , Protected Internal across Assemblies..Hi can any body the sample code to declare a as protected Internal , as well as Internal to use across different assemblies.. Assembly1 define class as Protected Internal or Internal define member variables as Protected internal / internal eg. namespace Assembly1 { protected Internal class Assembly1Base { protected internal Member1; internal Member2; } } define anothe class derive from assembly1.Assembly1Base namespace Assembly2 { // inherit or create objects of above class } and access the different members
-
how to create Const Member methods inside a class. how to create const objects of a Class.Thanks. How do you create a method , which will only be allowed to read the data Members, but can not be allowed to modify the data of the object . The static method, can still modify the static data members of the class.
-
how to create Const Member methods inside a class. how to create const objects of a Class.how to create Const Member methods inside a class. how to create const objects of a Class. Class Base { int member1=10; public void ModifyMember() // I need to make this method Const { member1 +=1; } } //In Main public static void Main() { //how to creat cons objects of class Base }