コード例 #1
0
        /// <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);
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
        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);
        }