public static void RunTests() { NoMethods noMethods = new NoMethods(); noMethods.WhatDoIDo("Some tool", "some work."); noMethods.DoSomething(); }
public static void DoSomething(this NoMethods obj) { Console.WriteLine(obj.Name + " does " + obj.Purpose); }
public static void WhatDoIDo(this NoMethods obj, string name, string purpose) { obj.Name = name; obj.Purpose = purpose; }