Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class sample{
//動く
public int prop{get; private set;}
//動かない
public int property{
get{return property;}
set{property = value;}
}
//動く
int propValue;
public int PropValue{
get{return propValue;}
set{propValue = value;}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment