XmlMembersMapping.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / XmlMembersMapping.cs / 1305376 / XmlMembersMapping.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// [....] 
//-----------------------------------------------------------------------------
 
namespace System.Xml.Serialization { 
    using System.Reflection;
    using System; 
    using System.Text;

    /// 
    /// 
    /// 
    ///    [To be supplied.] 
    ///  
    public class XmlMembersMapping : XmlMapping {
        XmlMemberMapping[] mappings; 

        internal XmlMembersMapping(TypeScope scope, ElementAccessor accessor, XmlMappingAccess access) : base(scope, accessor, access) {
            MembersMapping mapping = (MembersMapping)accessor.Mapping;
            StringBuilder key = new StringBuilder(); 
            key.Append(":");
            mappings = new XmlMemberMapping[mapping.Members.Length]; 
            for (int i = 0; i < mappings.Length; i++) { 
                if (mapping.Members[i].TypeDesc.Type != null) {
                    key.Append(GenerateKey(mapping.Members[i].TypeDesc.Type, null, null)); 
                    key.Append(":");
                }
                mappings[i] = new XmlMemberMapping(mapping.Members[i]);
            } 
            SetKeyInternal(key.ToString());
        } 
 
        /// 
        ///  
        ///    [To be supplied.]
        /// 
        public string TypeName {
            get { return Accessor.Mapping.TypeName; } 
        }
 
        ///  
        /// 
        ///    [To be supplied.] 
        /// 
        public string TypeNamespace {
            get { return Accessor.Mapping.Namespace; }
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public XmlMemberMapping this[int index] {
            get { return mappings[index]; }
        }
 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        public int Count { 
            get { return mappings.Length; }
        }
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// [....] 
//-----------------------------------------------------------------------------
 
namespace System.Xml.Serialization { 
    using System.Reflection;
    using System; 
    using System.Text;

    /// 
    /// 
    /// 
    ///    [To be supplied.] 
    ///  
    public class XmlMembersMapping : XmlMapping {
        XmlMemberMapping[] mappings; 

        internal XmlMembersMapping(TypeScope scope, ElementAccessor accessor, XmlMappingAccess access) : base(scope, accessor, access) {
            MembersMapping mapping = (MembersMapping)accessor.Mapping;
            StringBuilder key = new StringBuilder(); 
            key.Append(":");
            mappings = new XmlMemberMapping[mapping.Members.Length]; 
            for (int i = 0; i < mappings.Length; i++) { 
                if (mapping.Members[i].TypeDesc.Type != null) {
                    key.Append(GenerateKey(mapping.Members[i].TypeDesc.Type, null, null)); 
                    key.Append(":");
                }
                mappings[i] = new XmlMemberMapping(mapping.Members[i]);
            } 
            SetKeyInternal(key.ToString());
        } 
 
        /// 
        ///  
        ///    [To be supplied.]
        /// 
        public string TypeName {
            get { return Accessor.Mapping.TypeName; } 
        }
 
        ///  
        /// 
        ///    [To be supplied.] 
        /// 
        public string TypeNamespace {
            get { return Accessor.Mapping.Namespace; }
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public XmlMemberMapping this[int index] {
            get { return mappings[index]; }
        }
 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        public int Count { 
            get { return mappings.Length; }
        }
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK