//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Microsoft
//------------------------------------------------------------------------------
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);
}
}
}