Exemple #1
0
 /// <summary>
 /// Initializes an instance with a built in method.
 /// </summary>
 public SFunction(Delegate method)
 {
     if (method.GetType() == typeof(BuiltInMethod))
     {
         Method = (BuiltInMethod)method;
     }
     else if (method.GetType() == typeof(DotNetBuiltInMethod))
     {
         DotNetMethod = (DotNetBuiltInMethod)method;
     }
 }
Exemple #2
0
 /// <summary>
 /// Initializes an instance with a built in method.
 /// </summary>
 public SFunction(Delegate method)
 {
     if (method.GetType() == typeof(BuiltInMethod))
     {
         Method = (BuiltInMethod)method;
     }
     else if (method.GetType() == typeof(DotNetBuiltInMethod))
     {
         DotNetMethod = (DotNetBuiltInMethod)method;
     }
 }