mscorlib(4.0.0.0) API with additions
XmlMembersMapping.cs
1 using System.Text;
2 
4 {
7  {
8  private XmlMemberMapping[] mappings;
9 
12  public string TypeName => base.Accessor.Mapping.TypeName;
13 
16  public string TypeNamespace => base.Accessor.Mapping.Namespace;
17 
21  public XmlMemberMapping this[int index]
22  {
23  get
24  {
25  return mappings[index];
26  }
27  }
28 
31  public int Count => mappings.Length;
32 
33  internal XmlMembersMapping(TypeScope scope, ElementAccessor accessor, XmlMappingAccess access)
34  : base(scope, accessor, access)
35  {
36  MembersMapping membersMapping = (MembersMapping)accessor.Mapping;
37  StringBuilder stringBuilder = new StringBuilder();
38  stringBuilder.Append(":");
39  mappings = new XmlMemberMapping[membersMapping.Members.Length];
40  for (int i = 0; i < mappings.Length; i++)
41  {
42  if (membersMapping.Members[i].TypeDesc.Type != null)
43  {
44  stringBuilder.Append(XmlMapping.GenerateKey(membersMapping.Members[i].TypeDesc.Type, null, null));
45  stringBuilder.Append(":");
46  }
47  mappings[i] = new XmlMemberMapping(membersMapping.Members[i]);
48  }
49  SetKeyInternal(stringBuilder.ToString());
50  }
51  }
52 }
Provides mappings between .NET Framework Web service methods and Web Services Description Language (W...
Maps a code entity in a .NET Framework Web service method to an element in a Web Services Description...
string TypeName
Gets the name of the .NET Framework type being mapped to the data type of an XML Schema element that ...
Definition: __Canon.cs:3
XmlMappingAccess
Specifies whether a mapping is read, write, or both.
string TypeNamespace
Gets the namespace of the .NET Framework type being mapped to the data type of an XML Schema element ...
StringBuilder Append(char value, int repeatCount)
Appends a specified number of copies of the string representation of a Unicode character to this inst...
Supports mappings between .NET Framework types and XML Schema data types.
Definition: XmlMapping.cs:5
int Count
Gets the number of .NET Framework code entities that belong to a Web service method to which a SOAP m...
Represents a mutable string of characters. This class cannot be inherited.To browse the ....