示例#1
0
        public static bool Read(IReader reader, ref Detail.Enum2 val, string name = null)
        {
            int tmp = 0;

            if (!reader.Read(ref tmp, name))
            {
                return(false);
            }

            val = (Detail.Enum2)tmp;
            return(true);
        }
示例#2
0
 public static bool Write(IWriter writer, Detail.Enum2 val, string name = null)
 {
     return(writer.Write((int)val, name));
 }