73 references to Name
System.Private.Xml (73)
System\Xml\Serialization\Mappings.cs (1)
349
get { return IsAnonymousType ? XmlConvert.EncodeLocalName(_typeDesc!.
Name
) : _typeName; }
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
1270
return Enum.ToObject(mapping.TypeDesc!.Type!, ToEnum(source, table, mapping.TypeDesc.
Name
));
System\Xml\Serialization\SoapReflectionImporter.cs (6)
208
string xsdTypeName = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc!.
Name
: dataType;
276
throw new InvalidOperationException(SR.Format(SR.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc!.FullName, typeDesc.
Name
, existingMapping.Namespace));
281
throw new InvalidOperationException(SR.Format(SR.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc!.FullName, typeDesc.
Name
, existingMapping.Namespace));
305
string typeName = XsdTypeName(model.Type, a, model.TypeDesc.
Name
);
561
string typeName = XsdTypeName(model.Type, a, model.TypeDesc.
Name
);
768
return XsdTypeName(type, GetAttributes(type), typeDesc.
Name
);
System\Xml\Serialization\XmlReflectionImporter.cs (6)
448
string? xsdTypeName = valueTypeDesc.DataType == null ? valueTypeDesc.
Name
: valueTypeDesc.DataType.Name;
674
throw new InvalidOperationException(SR.Format(SR.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc!.FullName, typeDesc.
Name
, existingMapping.Namespace));
679
throw new InvalidOperationException(SR.Format(SR.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc!.FullName, typeDesc.
Name
, existingMapping.Namespace));
739
string? typeName = IsAnonymousType(a, ns) ? null : XsdTypeName(model.Type, a, model.TypeDesc.
Name
);
963
return XsdTypeName(type, GetAttributes(type, false), typeDesc.
Name
);
1195
string? typeName = IsAnonymousType(a, ns) ? null : XsdTypeName(model.Type, a, model.TypeDesc.
Name
);
System\Xml\Serialization\XmlSchemaExporter.cs (10)
916
throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Mapping for " + pm.TypeDesc.
Name
+ " missing type property"));
932
throw new InvalidOperationException(SR.Format(SR.XmlInvalidDefaultValue, value, pm.TypeDesc.
Name
));
935
throw new InvalidOperationException(SR.Format(SR.XmlInvalidDefaultValue, value, pm.TypeDesc.
Name
));
969
throw new InvalidOperationException(SR.Format(SR.XmlCircularReference2, mapping.TypeDesc.
Name
, "AnonymousType", "false"));
975
if (!mapping.IncludeInSchema) throw new InvalidOperationException(SR.Format(SR.XmlCannotIncludeInSchema, mapping.TypeDesc.
Name
));
990
throw new InvalidOperationException(SR.Format(SR.XmlAnonymousBaseType, mapping.TypeDesc.
Name
, mapping.BaseMapping.TypeDesc!.
Name
, "AnonymousType", "false"));
1096
throw new InvalidOperationException(SR.Format(SR.XmlAnonymousBaseType, textMapping.TypeDesc!.
Name
, pm.TypeDesc!.
Name
, "AnonymousType", "false"));
1143
if (!mapping.IncludeInSchema) throw new InvalidOperationException(SR.Format(SR.XmlCannotIncludeInSchema, mapping.TypeDesc!.
Name
));
System\Xml\Serialization\XmlSchemaImporter.cs (7)
1184
textMapping.TypeName = textMapping.TypeDesc.
Name
;
1206
mapping.TypeName = mapping.TypeDesc.
Name
;
1296
arrayMapping.TypeName = string.IsNullOrEmpty(type.Name) ? $"ArrayOf{CodeIdentifier.MakePascal(arrayMapping.TypeDesc!.
Name
)}" : type.Name;
1313
arrayMapping.TypeName = string.IsNullOrEmpty(type.Name) ? $"ArrayOf{CodeIdentifier.MakePascal(itemAccessor.Mapping.TypeDesc.
Name
)}" : type.Name;
1396
mapping.TypeName = mapping.TypeDesc.
Name
;
1492
mapping.TypeName = mapping.TypeDesc.
Name
;
1553
xmlnsMapping.TypeName = xmlnsMapping.TypeDesc.
Name
;
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (1)
241
string serializerName = CodeIdentifier.MakeValid(Accessor.UnescapeName(mapping.Accessor.Mapping!.TypeDesc!.
Name
));
System\Xml\Serialization\XmlSerializationILGen.cs (1)
314
string serializerName = CodeIdentifier.MakeValid(Accessor.UnescapeName(mapping.Accessor.Mapping!.TypeDesc!.
Name
));
System\Xml\Serialization\XmlSerializationReader.cs (8)
2245
MethodNames.Add(mapping, NextMethodName(mapping.TypeDesc!.
Name
));
2826
if (enumMethodName == null) throw new InvalidOperationException(SR.Format(SR.XmlMissingMethodEnum, mapping.TypeDesc!.
Name
));
2975
tableName = WriteHashtable(mapping, mapping.TypeDesc!.
Name
);
3070
if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, derived.TypeDesc!.
Name
));
3107
if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, enumMapping.TypeDesc!.
Name
));
3565
string createName = string.Create(CultureInfo.InvariantCulture, $"create{++_nextCreateMethodNumber}_{typeDesc.
Name
}");
4635
if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, element.Mapping.TypeDesc!.
Name
));
4782
if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, mapping.TypeDesc!.
Name
));
System\Xml\Serialization\XmlSerializationReaderILGen.cs (7)
198
MethodNames.Add(mapping, NextMethodName(mapping.TypeDesc!.
Name
));
685
if (enumMethodName == null) throw new InvalidOperationException(SR.Format(SR.XmlMissingMethodEnum, mapping.TypeDesc!.
Name
));
1019
WriteHashtable(mapping, mapping.TypeDesc!.
Name
, out get_TableName);
1142
if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, derived.TypeDesc!.
Name
));
1197
if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, enumMapping.TypeDesc!.
Name
));
2979
if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, element.Mapping.TypeDesc!.
Name
));
3128
if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, mapping.TypeDesc!.
Name
));
System\Xml\Serialization\XmlSerializationWriter.cs (5)
2264
MethodNames.Add(mapping, NextMethodName(mapping.TypeDesc!.
Name
));
2408
if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, mapping.TypeDesc!.
Name
) + Environment.StackTrace);
2987
if (methodName == null) throw new InvalidOperationException("derived from " + mapping.TypeDesc!.FullName + ", " + SR.Format(SR.XmlInternalErrorMethod, derived.TypeDesc.
Name
) + Environment.StackTrace);
3026
if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, mapping.TypeDesc.
Name
) + Environment.StackTrace);
4113
if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, structMapping.TypeDesc!.
Name
) + Environment.StackTrace);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (19)
41
MethodNames.Add(mapping, NextMethodName(mapping.TypeDesc!.
Name
));
127
if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, mapping.TypeDesc!.
Name
));
748
if (methodName == null) throw new InvalidOperationException("derived from " + mapping.TypeDesc!.FullName + ", " + SR.Format(SR.XmlInternalErrorMethod, derived.TypeDesc.
Name
));
799
if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, mapping.TypeDesc.
Name
));
1157
string aVar = $"a{memberTypeDesc.
Name
}";
1158
string aiVar = $"ai{memberTypeDesc.
Name
}";
1411
WriteElements(source, choiceSource, elements, text, choice, $"a{memberTypeDesc.
Name
}", writeAccessors, memberTypeDesc.IsNullable);
1418
string aName = $"a{arrayTypeDesc.
Name
}";
1434
cName = $"c{choice.Mapping.TypeDesc.
Name
}";
1521
string arrayNamePlusA = $"{(arrayName).Replace(arrayTypeDesc.
Name
, "")}a{arrayElementTypeDesc.
Name
}";
1522
string arrayNamePlusI = $"{(arrayName).Replace(arrayTypeDesc.
Name
, "")}i{arrayElementTypeDesc.
Name
}";
1541
string iPlusArrayName = $"i{(arrayName).Replace(arrayTypeDesc.
Name
, "")}";
1542
string arrayNamePlusA = $"{(arrayName).Replace(arrayTypeDesc.
Name
, "")}a{arrayElementTypeDesc.
Name
}";
1543
string arrayNamePlusI = $"{(arrayName).Replace(arrayTypeDesc.
Name
, "")}i{arrayElementTypeDesc.
Name
}";
1994
if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, structMapping.TypeDesc!.
Name
));
System\Xml\Serialization\XmlTypeMapping.cs (1)
30
return Mapping!.TypeDesc!.
Name
;