public class Program
{
public static void Main()
Object obj = null;
obj.Prop = (obj != null);
}
public class Object
public bool Prop { get; set; }