Exemple #1
0
        public static void RunTests()
        {
            NoMethods noMethods = new NoMethods();

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