Use internal : Internal : Language Basics C# Source Code


Custom Search

C# Source Code » Language Basics » Internal »

 

Use internal









    

/*
C#: The Complete Reference 
by Herbert Schildt 

Publisher: Osborne/McGraw-Hill (March 8, 2002)
ISBN: 0072134852
*/
// Use internal. 
 
using System; 
 
class InternalTest { 
  internal int x; 
} 
 
public class InternalDemo { 
  public static void Main() { 
    InternalTest ob = new InternalTest(); 
 
    ob.x = 10; // can access -- in same file 
 
    Console.WriteLine("Here is ob.x: " + ob.x); 
 
  } 
}


           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Language Basics
» Internal