Use this to reference shadowed member variables : This : Class C# Examples


C# Examples » Class » This »

 

Use this to reference shadowed member variables









    
using  System;

class  MyObject
{
        int  x;
        int  y;

        public  MyObject(int  x,  int  y)
        {
                this.x  =  x;
                this.y  =  y;
        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Class
» This