Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
 public InitAssemblyData(InitializationAttribute attribute)
 {
     fAttribute     = attribute;
     Initialization = ObjectUtil.CreateObject(
         fAttribute.InitClassType) as IInitialization;
 }