public class Test { public static int Foo { get { return 0; } set { } } public static void Main(string[] args) { Foo = 3; } }