2011-04-08 69 views

回答

6

没有,但你可以在Visual Studio中键入

prop 

,按Tab键(也许两次) ,瞧!你得到你想要的。 :D

3

都能跟得上 - 你不能用这种方式延长C#编译器。

你应该感谢它的短,你曾经有过这样写:

public string Foo 
{ 
    get 
    { 
     return this.foo; 
    } 
    set 
    { 
     this.foo = value; 
    } 
} 
private string foo; 
相关问题