Esempio n. 1
0
        public static void RunTests()
        {
            NoMethods noMethods = new NoMethods();

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