public static ILuiObject Create(LuiObjectParameters p, IEnumerable <ILuiObject> dependencies) { var args = new object[] { p }.Concat(dependencies).ToArray(); return((ILuiObject)Activator.CreateInstance(p.Type, BindingFlags.CreateInstance | BindingFlags.Public | BindingFlags.Instance | BindingFlags.OptionalParamBinding, null, args, CultureInfo.CurrentCulture)); }
public LuiObjectParametersEventArgs(LuiObjectParameters p) { Argument = p; }
public static ILuiObject Create(LuiObjectParameters p) { return((ILuiObject)Activator.CreateInstance(p.Type, p)); }
public static ILuiObject Create <P>(LuiObjectParameters <P> p) where P : LuiObjectParameters <P> { return((ILuiObject)Activator.CreateInstance(p.Type, p)); }