예제 #1
0
        protected override ImagePart FromX(XElement xe)
        {
            switch (xe.Name.LocalName)
            {
            case "Parameterized":
                return(XParser.Parse <ParameterizedPart>(xe));

            default:
                return(base.FromX(xe));
            }
        }
예제 #2
0
 /// <summary>
 /// 从xml中反序列化ISave接口对象,如T有派生类,需重写
 /// </summary>
 /// <param name="xe">xml.linq</param>
 /// <returns>对象</returns>
 protected virtual T FromX(XElement xe)
 {
     return(XParser.Parse <T>(xe));
 }