public void Main() { new Callee().InstanceMethod(); Callee.StaticMethod(); new Callee().BaseMethod(); new Callee().VirtualMethod(); new Callee().ExtensionMethod(); }
public void Action(ICallee callee) { callee.InterfaceMethod(); callee.BaseInterfaceMethod(); var c4 = new Callee(); c4.VirtualBaseMethod(); }
public void SpecialMethods() { var callee = new Callee(); if (callee.Property == 42) { callee.Property = 42 * 2; } callee["a"] = callee["b"]; callee.Event += (s, e) => { }; }
public static void ExtensionMethod(this Callee self) { }
private void DoItSilently() { Callee.StaticMethod(); }