Changeset 4712

Show
Ignore:
Timestamp:
06/15/08 04:27:35 (5 months ago)
Author:
xmlhacker
Message:

Forgot that I could declare the type directly given the use of generics which allows the ability to invoke the methods directly

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/nuxleus/Source/CodeSamples/SaxonExtensionFunction_Test/Program.cs

    r4711 r4712  
    4747            stopwatch.Start(); 
    4848            for (int i = 0; i <= count; i++) { 
    49                 object obj1 = ExtensionFunction<Test>.Create(); 
    50                 object obj2 = ExtensionFunction<Test>.Create("Created with a single string parameter"); 
    51                 object obj3 = ExtensionFunction<Test>.Create("Created with two", "string parameters"); 
     49                Test obj1 = ExtensionFunction<Test>.Create(); 
     50                Test obj2 = ExtensionFunction<Test>.Create("Created with a single string parameter"); 
     51                Test obj3 = ExtensionFunction<Test>.Create("Created with two", "string parameters"); 
     52                //Console.WriteLine("Test.GetOutput(\"test1\") returned: {0}", obj1.GetOutput("test1")); 
     53                //Console.WriteLine("Test.GetOutput(\"test2\") returned: {0}", obj2.GetOutput("test2")); 
     54                //Console.WriteLine("Test.GetOutput(\"test3\") returned: {0}", obj3.GetOutput("test3")); 
    5255                Console.WriteLine("Test.GetOutput(\"test1\") returned: {0}", ExtensionFunction<Test>.Invoke<String>(obj1, "GetOutput", "test1")); 
    5356                Console.WriteLine("Test.GetOutput(\"test2\") returned: {0}", ExtensionFunction<Test>.Invoke<String>(obj2, "GetOutput", "test2"));