internal void ParseXml(AutoCSer.XmlDeSerializer xmlDeSerializer) { if (MemberMap == null) { MemberMap = AutoCSer.Metadata.MemberMap <valueType> .NewEmpty(); } xmlDeSerializer.MemberMap = MemberMap; xmlDeSerializer.TypeDeSerialize(ref Value); }
private unsafe void deSerialize(AutoCSer.XmlDeSerializer xmlDeSerializer) { switch (xmlDeSerializer.TypeDeSerialize <int>()) { case 1: Value = null; return; case 2: Value = string.Empty; return; default: xmlDeSerializer.MoveRead(-1); return; } }