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); }
public static bool Write(IWriter writer, Detail.Enum2 val, string name = null) { return(writer.Write((int)val, name)); }