/// <summary> /// /// </summary> /// <param name="type"></param> /// <param name="cache"></param> /// <param name="options"></param> public AnyTypeTypeSerializer(Type type, TypeSerializerCache cache, SerializerOptions options) { m_Type = type; m_ElementMembersMap = new SortedList(0x10); m_AttributeMembersMap = new SortedList(0x10); cache.Add(this); Scan(cache, options); }
/// <summary> /// /// </summary> /// <param name="type"></param> /// <param name="cache"></param> /// <param name="options"></param> public ComplexTypeTypeSerializer(Type type, TypeSerializerCache cache, SerializerOptions options) { m_Type = type; m_ElementMembersMap = new Hashtable(0x10); m_AttributeMembersMap = new Hashtable(0x10); cache.Add(this); Scan(cache, options); }
public ComplexTypeTypeSerializer(SerializationMemberInfo memberInfo, Type type, TypeSerializerCache cache, SerializerOptions options) { supportedType = type; serializationMemberInfo = memberInfo; elementMembersMap = new ListDictionary(); attributeMembersMap = new ListDictionary(); if (memberInfo != null && memberInfo.IncludeIfUnattributed) { memberBound = true; } cache.Add(this, memberInfo); Scan(cache, options); }