/// <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; } }