Interface Properties : Interface : Class C# Examples


C# Examples » Class » Interface »

 

Interface Properties





Here is the general form of a property specification:




    
//  interface  property
type  name  {
        get;
        set;
}
    
   
  
   


An interface can specify an indexer.
An indexer declared in an interface has this general form:





    
//  interface  indexer
        element-type  this[int  index]  {
                get;
                set;
        }
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Class
» Interface