XmlMemberMapping.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

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

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

    using System.Reflection; 
    using System;
    using System.CodeDom;
    using System.CodeDom.Compiler;
 
    /// 
    ///  
    public class XmlMemberMapping { 
        MemberMapping mapping;
 
        internal XmlMemberMapping(MemberMapping mapping) {
            this.mapping = mapping;
        }
 
        internal MemberMapping Mapping {
            get { return mapping; } 
        } 

        internal Accessor Accessor { 
            get { return mapping.Accessor; }
        }

        ///  
        public bool Any {
            get { return Accessor.Any; } 
        } 

        ///  
        /// 
        ///    [To be supplied.]
        /// 
        public string ElementName { 
            get { return Accessor.UnescapeName(Accessor.Name); }
        } 
 
        /// 
        ///  
        ///    [To be supplied.]
        /// 
        public string XsdElementName {
            get { return Accessor.Name; } 
        }
 
        ///  
        /// 
        ///    [To be supplied.] 
        /// 
        public string Namespace {
            get { return Accessor.Namespace; }
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public string MemberName {
            get { return mapping.Name; }
        }
 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        public string TypeName { 
            get { return Accessor.Mapping != null ? Accessor.Mapping.TypeName : String.Empty; }
        }

        ///  
        /// 
        ///    [To be supplied.] 
        ///  
        public string TypeNamespace {
            get { return Accessor.Mapping != null ? Accessor.Mapping.Namespace : null; } 
        }

        /// 
        ///  
        ///    [To be supplied.]
        ///  
        public string TypeFullName { 
            get { return mapping.TypeDesc.FullName; }
        } 

        /// 
        /// 
        ///    [To be supplied.] 
        /// 
        public bool CheckSpecified { 
            get { return mapping.CheckSpecified != SpecifiedAccessor.None; } 
        }
 
        internal bool IsNullable {
            get { return mapping.IsNeedNullable; }
        }
 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        public string GenerateTypeName(CodeDomProvider codeProvider) { 
            return mapping.GetTypeName(codeProvider);
        }
    }
} 

// 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