如果只是用于OPS-XML序列化,不需要override[Clone][Bind],从而使代码更加干净
Ejemplo n.º 1
0
        public static Templet getTempletByFile(string file)
        {
            var opsXml = File.ReadAllText(Config.DIR_TEMPLET + "/" + file, UTF8Encoding.UTF8);

            Templet temp = new Templet();
            XDom.Bind(temp, opsXml);

            return temp;
        }
Ejemplo n.º 2
0
        public static Templet getTempletByFile(string file)
        {
            var opsXml = File.ReadAllText(Config.DIR_TEMPLET + "/" + file, UTF8Encoding.UTF8);

            Templet temp = new Templet();

            XDom.Bind(temp, opsXml);

            return(temp);
        }