꺄뜨르 2012. 2. 3. 09:50
class myExample{
private int someVal; //private data field
public int CurrentValue{
get { return someVal;}
set { someVal = value;} //value is implicit
//if no "set " defined = property is write-only
}
}
-> automatic properties:
could be rewritten as ...

class myExample{
public int CurrentValue { get; set ;}
}