public static void Demonstrate() { IStruct si = new StructImpl(); int result = si.Add(10, 5); System.Console.WriteLine($"The result is {result}"); }
public void Action_StructImpl_MethodAction() { var obj = new StructImpl(); var action = Dispose <StructImpl> .Action; Assert.That(action, Is.Not.Null); action(ref obj); Assert.That(obj.IsDisposed); }