public static void XafExtenderRegisterTypes(this ITypesInfo TypeInfo, IEnumerable <Type> types) { DevExpress.ExpressApp.DC.TypeInfo MyDynamicType; foreach (Type type in types) { MyDynamicType = (DevExpress.ExpressApp.DC.TypeInfo)TypeInfo.FindTypeInfo(type); MyDynamicType.RemoveAttributes <NonPersistentAttribute>(); TypeInfo.RefreshInfo(type); } }
public JSValue __Run() { JSValue value2; JSContext context = new MyDynamicType(); JSContext.PushContext(context); try { value2 = GlobalCode(context); } finally { JSContext.PopContext(); } return value2; }
public JSValue __Run() { JSValue value2; JSContext context = new MyDynamicType(); JSContext.PushContext(context); try { value2 = GlobalCode(context); } finally { JSContext.PopContext(); } return(value2); }
static void Main() { MyDynamicType m = new MyDynamicType(17); Console.WriteLine(m.GetNumber()); }