public override IRedirector CreateRedirector(IPageData pageData) { IRedirector redirector = ObjectUtil.CreateObject(ObjectType).Convert <IRedirector>(); TkDebug.AssertNotNull(redirector, string.Format( ObjectUtil.SysCulture, "无法根据类型{0}创建实例", ObjectType), this); return(redirector); }
public object Read(IInputData input, Stream stream) { object postObject = UseConstructor ? ObjectUtil.CreateObjectWithCtor(fObjectType) : ObjectUtil.CreateObject(fObjectType); postObject.ReadFromStream("Json", ModelName, stream, ObjectUtil.ReadSettings, QName.ToolkitNoNS); return(postObject); }
public InitAssemblyData(InitializationAttribute attribute) { fAttribute = attribute; Initialization = ObjectUtil.CreateObject( fAttribute.InitClassType) as IInitialization; }