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

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