1 write to ArrayElementTypeDesc
System.Xml (1)
System\Xml\Serialization\Types.cs (1)
848
typeDesc.
ArrayElementTypeDesc
= td;
48 references to ArrayElementTypeDesc
System.Xml (48)
System\Xml\Serialization\Mappings.cs (3)
868
if (td.IsMappedType || (!td.IsValueType && (Elements[0].IsSoap || td.
ArrayElementTypeDesc
== null)))
870
if (td.
ArrayElementTypeDesc
!= null) {
871
return GetNullableType(td.
ArrayElementTypeDesc
) + "[]";
System\Xml\Serialization\Models.cs (1)
174
CheckSupportedMember(typeDesc.
ArrayElementTypeDesc
, member, type);
System\Xml\Serialization\XmlCodeExporter.cs (6)
609
ExportArrayElements(metadata, (ArrayMapping) elementMapping, ns, elementTypeDesc.
ArrayElementTypeDesc
, nestingLevel+1);
626
(member.TypeDesc.IsArrayLike && mapping.TypeDesc == member.TypeDesc.
ArrayElementTypeDesc
);
644
(member.TypeDesc.IsArrayLike && mapping.TypeDesc == member.TypeDesc.
ArrayElementTypeDesc
);
663
else if (mapping.TypeDesc.
ArrayElementTypeDesc
== new TypeScope().GetTypeDesc(typeof(byte))) {
668
ExportArrayElements(metadata, array, element.Namespace, member.TypeDesc.
ArrayElementTypeDesc
, 0);
672
(member.TypeDesc.IsArrayLike && mapping.TypeDesc == member.TypeDesc.
ArrayElementTypeDesc
);
System\Xml\Serialization\XmlReflectionImporter.cs (7)
1363
if (a.XmlAttribute != null && !accessor.TypeDesc.
ArrayElementTypeDesc
.IsPrimitive && !accessor.TypeDesc.
ArrayElementTypeDesc
.IsEnum) {
1365
if (accessor.TypeDesc.
ArrayElementTypeDesc
.Kind == TypeKind.Serializable) {
1366
throw new InvalidOperationException(Res.GetString(Res.XmlIllegalAttrOrTextInterface, accessorName, accessor.TypeDesc.
ArrayElementTypeDesc
.FullName, typeof(IXmlSerializable).Name));
1369
throw new InvalidOperationException(Res.GetString(Res.XmlIllegalAttrOrText, accessorName, accessor.TypeDesc.
ArrayElementTypeDesc
.FullName));
1373
bool isList = a.XmlAttribute != null && (accessor.TypeDesc.
ArrayElementTypeDesc
.IsPrimitive || accessor.TypeDesc.
ArrayElementTypeDesc
.IsEnum);
System\Xml\Serialization\XmlSchemaExporter.cs (2)
177
bool isMixed = isUnbounded && member.Mapping.TypeDesc.
ArrayElementTypeDesc
!= null ? member.Mapping.TypeDesc.
ArrayElementTypeDesc
.IsMixed : member.Mapping.TypeDesc.IsMixed;
System\Xml\Serialization\XmlSerializationReader.cs (8)
2583
string item = (td.
ArrayElementTypeDesc
== null ? "object" : td.
ArrayElementTypeDesc
.CSharpName) + "[]";
2584
bool arrayElementUseReflection = td.
ArrayElementTypeDesc
== null?false:td.
ArrayElementTypeDesc
.UseReflection;
4040
string arrayTypeFullName = typeDesc.
ArrayElementTypeDesc
.CSharpName;
4041
bool arrayUseReflection = typeDesc.
ArrayElementTypeDesc
.UseReflection;
4081
bool arrayUseReflection = typeDesc.
ArrayElementTypeDesc
.UseReflection;
4082
string arrayTypeFullName = typeDesc.
ArrayElementTypeDesc
.CSharpName;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (6)
2101
WriteSourceEnd(member.ArraySource, member.Mapping.TypeDesc.IsArrayLike ? member.Mapping.TypeDesc.
ArrayElementTypeDesc
.Type : member.Mapping.TypeDesc.Type);
2117
WriteSourceEnd(member.ArraySource, member.Mapping.TypeDesc.IsArrayLike ? member.Mapping.TypeDesc.
ArrayElementTypeDesc
.Type : member.Mapping.TypeDesc.Type);
2163
WriteSourceEnd(attributeSource, member.Mapping.TypeDesc.
ArrayElementTypeDesc
.Type);
2169
WriteSourceEnd(member.ArraySource, member.Mapping.TypeDesc.IsArrayLike ? member.Mapping.TypeDesc.
ArrayElementTypeDesc
.Type : member.Mapping.TypeDesc.Type);
2631
string arrayTypeFullName = typeDesc.
ArrayElementTypeDesc
.CSharpName;
2680
ilg.Ldc(typeDesc.
ArrayElementTypeDesc
.Type);
System\Xml\Serialization\XmlSerializationWriter.cs (10)
2001
WriteArrayTypeCompare("t", fullTypeName, mapping.TypeDesc.
ArrayElementTypeDesc
.CSharpName, mapping.TypeDesc.UseReflection);
2222
if (CanOptimizeWriteListSequence(memberTypeDesc.
ArrayElementTypeDesc
)) {
2242
TypeDesc arrayElementTypeDesc = memberTypeDesc.
ArrayElementTypeDesc
;
2299
if (CanOptimizeWriteListSequence(memberTypeDesc.
ArrayElementTypeDesc
)) {
2320
if (CanOptimizeWriteListSequence(memberTypeDesc.
ArrayElementTypeDesc
)) {
2419
TypeDesc arrayElementTypeDesc = arrayTypeDesc.
ArrayElementTypeDesc
;
3369
TypeDesc elementTypeDesc = typeDesc.
ArrayElementTypeDesc
;
3408
TypeDesc elementTypeDesc = typeDesc.
ArrayElementTypeDesc
;
3458
string elementTypeFullName = typeDesc.
ArrayElementTypeDesc
.CSharpName;
3459
bool elementUseReflection = typeDesc.
ArrayElementTypeDesc
.UseReflection;
System\Xml\Serialization\XmlSerializationWriterILGen.cs (5)
1124
if (CanOptimizeWriteListSequence(memberTypeDesc.
ArrayElementTypeDesc
)) {
1159
TypeDesc arrayElementTypeDesc = memberTypeDesc.
ArrayElementTypeDesc
;
1180
if (CanOptimizeWriteListSequence(memberTypeDesc.
ArrayElementTypeDesc
)) {
1251
if (CanOptimizeWriteListSequence(memberTypeDesc.
ArrayElementTypeDesc
)) {
1432
TypeDesc arrayElementTypeDesc = arrayTypeDesc.
ArrayElementTypeDesc
;