mscorlib(4.0.0.0) API with additions
XmlMembersMapping.cs
1
using
System
.
Text
;
2
3
namespace
System.Xml.Serialization
4
{
6
public
class
XmlMembersMapping
:
XmlMapping
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
}
System.Text
Definition:
ASCIIEncoding.cs:4
System.Xml.Serialization.XmlMembersMapping
Provides mappings between .NET Framework Web service methods and Web Services Description Language (W...
Definition:
XmlMembersMapping.cs:6
System.Xml.Serialization.XmlMemberMapping
Maps a code entity in a .NET Framework Web service method to an element in a Web Services Description...
Definition:
XmlMemberMapping.cs:6
System.Xml.Serialization.XmlMembersMapping.TypeName
string TypeName
Gets the name of the .NET Framework type being mapped to the data type of an XML Schema element that ...
Definition:
XmlMembersMapping.cs:12
System.Xml.Serialization
Definition:
Accessor.cs:3
System
Definition:
__Canon.cs:3
System.Xml.Serialization.XmlMappingAccess
XmlMappingAccess
Specifies whether a mapping is read, write, or both.
Definition:
XmlMappingAccess.cs:6
System.Xml.Serialization.XmlMembersMapping.TypeNamespace
string TypeNamespace
Gets the namespace of the .NET Framework type being mapped to the data type of an XML Schema element ...
Definition:
XmlMembersMapping.cs:16
System.Text.StringBuilder.Append
StringBuilder Append(char value, int repeatCount)
Appends a specified number of copies of the string representation of a Unicode character to this inst...
Definition:
StringBuilder.cs:540
System.Xml.Serialization.XmlMapping
Supports mappings between .NET Framework types and XML Schema data types.
Definition:
XmlMapping.cs:5
System.Xml.Serialization.XmlMembersMapping.Count
int Count
Gets the number of .NET Framework code entities that belong to a Web service method to which a SOAP m...
Definition:
XmlMembersMapping.cs:31
System.Text.StringBuilder
Represents a mutable string of characters. This class cannot be inherited.To browse the ....
Definition:
StringBuilder.cs:14
All cs
System.Xml.Serialization
XmlMembersMapping.cs
Generated by
1.8.15