mscorlib(4.0.0.0) API with additions
XmlMemberMapping.cs
2 
4 {
6  public class XmlMemberMapping
7  {
8  private MemberMapping mapping;
9 
10  internal MemberMapping Mapping => mapping;
11 
12  internal Accessor Accessor => mapping.Accessor;
13 
17  public bool Any => Accessor.Any;
18 
21  public string ElementName => Accessor.UnescapeName(Accessor.Name);
22 
25  public string XsdElementName => Accessor.Name;
26 
29  public string Namespace => Accessor.Namespace;
30 
33  public string MemberName => mapping.Name;
34 
37  public string TypeName
38  {
39  get
40  {
41  if (Accessor.Mapping == null)
42  {
43  return string.Empty;
44  }
45  return Accessor.Mapping.TypeName;
46  }
47  }
48 
51  public string TypeNamespace
52  {
53  get
54  {
55  if (Accessor.Mapping == null)
56  {
57  return null;
58  }
59  return Accessor.Mapping.Namespace;
60  }
61  }
62 
65  public string TypeFullName => mapping.TypeDesc.FullName;
66 
70  public bool CheckSpecified => mapping.CheckSpecified != SpecifiedAccessor.None;
71 
72  internal bool IsNullable => mapping.IsNeedNullable;
73 
74  internal XmlMemberMapping(MemberMapping mapping)
75  {
76  this.mapping = mapping;
77  }
78 
82  public string GenerateTypeName(CodeDomProvider codeProvider)
83  {
84  return mapping.GetTypeName(codeProvider);
85  }
86  }
87 }
Maps a code entity in a .NET Framework Web service method to an element in a Web Services Description...
Definition: __Canon.cs:3
string TypeFullName
Gets the fully qualified type name of the .NET Framework type for this mapping.
bool CheckSpecified
Gets a value that indicates whether the accompanying field in the .NET Framework type has a value spe...
string TypeNamespace
Gets the namespace of the .NET Framework type for this mapping.
string XsdElementName
Gets the XML element name as it appears in the service description document.
string MemberName
Gets the name of the Web service method member that is represented by this mapping.
string Namespace
Gets the XML namespace that applies to this mapping.
bool Any
Gets or sets a value that indicates whether the .NET Framework type maps to an XML element or attribu...
string GenerateTypeName(CodeDomProvider codeProvider)
Returns the name of the type associated with the specified T:System.CodeDom.Compiler....
string TypeName
Gets the type name of the .NET Framework type for this mapping.
string ElementName
Gets the unqualified name of the XML element declaration that applies to this mapping.
Provides a base class for T:System.CodeDom.Compiler.CodeDomProvider implementations....