13 writes to Annotation
System.Private.DataContractSerialization (9)
System\Runtime\Serialization\SchemaExporter.cs (9)
151
element.
Annotation
= GetSchemaAnnotation(actualTypeElement, ExportSurrogateData(dataMember), ExportEmitDefaultValue(dataMember));
173
type.
Annotation
= GetSchemaAnnotation(genericInfoElement, ExportSurrogateData(classDataContract), isValueTypeElement);
371
type.
Annotation
= GetSchemaAnnotation(isDictionaryElement, genericInfoElement, ExportSurrogateData(collectionDataContract));
392
keyValueElement.
Annotation
= GetSchemaAnnotation(ExportSurrogateData(dataMember));
428
type.
Annotation
= GetSchemaAnnotation(actualTypeElement, ExportSurrogateData(enumDataContract));
441
facet.
Annotation
= GetSchemaAnnotation(EnumerationValueAnnotationName, enumDataContract.GetStringFromEnumValue(enumDataContract.Values[i]), schema);
488
type.
Annotation
= GetSchemaAnnotation(genericInfoElement, ExportSurrogateData(dataContract), isValueTypeElement);
541
xsdType.
Annotation
= GetSchemaAnnotation(
663
providerXsdType.
Annotation
= GetSchemaAnnotation(ExportActualType(xmlName, new XmlDocument()));
System.Private.Xml (4)
System\Xml\Schema\Inference\Infer.cs (1)
2386
newElement.
Annotation
= copyElement.Annotation;
System\Xml\Schema\XmlSchemaAnyAttribute.cs (2)
85
anyAttribute.
Annotation
= o1.Annotation;
103
anyAttribute.
Annotation
= o1.Annotation;
System\Xml\Serialization\XmlSchemaExporter.cs (1)
1196
type.
Annotation
= annotation;
61 references to Annotation
System.Data.Common (2)
System\Data\XMLSchema.cs (2)
949
if (el.
Annotation
!= null)
950
HandleRelations(el.
Annotation
, true);
System.Private.DataContractSerialization (18)
System\Runtime\Serialization\DataContractSet.cs (1)
550
xmlName = SchemaImporter.ImportActualType(xmlDataContract.XsdType?.
Annotation
, xmlName, dataContract.XmlName);
System\Runtime\Serialization\SchemaImporter.cs (17)
430
dataContract = ImportFlagsEnum(typeName, (XmlSchemaSimpleTypeList)content, simpleType.
Annotation
);
435
dataContract = ImportEnum(typeName, restriction, false /*isFlags*/, simpleType.
Annotation
);
452
dataContract = ImportType(typeName, complexType.Particle, complexType.Attributes, complexType.AnyAttribute, null /* baseTypeName */, complexType.
Annotation
);
466
dataContract = ImportType(typeName, extension.Particle, extension.Attributes, extension.AnyAttribute, extension.BaseTypeName, complexType.
Annotation
);
472
dataContract = ImportType(typeName, restriction.Particle, restriction.Attributes, restriction.AnyAttribute, null /* baseTypeName */, complexType.
Annotation
);
504
|| (string.IsNullOrEmpty(type.Name) && _dataContractSet.TryGetReferencedType(ImportActualType(type.
Annotation
, typeName, typeName), dataContract, out referencedType)))
713
xmlDataContract.IsValueType = IsValueType(typeName, xsdType.
Annotation
);
982
XmlQualifiedName memberTypeName = ImportActualType(element.
Annotation
, element.SchemaTypeName, typeName);
987
bool? emitDefaultValueFromAnnotation = ImportEmitDefaultValue(element.
Annotation
, typeName);
1016
_dataContractSet.SetSurrogateData(dataMember, ImportSurrogateData(ImportAnnotation(element.
Annotation
, surrogateDataAnnotationName), surrogateDataAnnotationName.Name, surrogateDataAnnotationName.Namespace));
1212
string? valueInnerText = GetInnerText(typeName, ImportAnnotation(enumFacet.
Annotation
, SchemaExporter.EnumerationValueAnnotationName));
1242
if (type.
Annotation
== null || type.
Annotation
.Items == null)
1244
foreach (XmlSchemaObject schemaObject in type.
Annotation
.Items)
1264
if (type.
Annotation
== null || type.
Annotation
.Items == null)
1266
foreach (XmlSchemaObject schemaObject in type.
Annotation
.Items)
System.Private.Xml (40)
System\Xml\Schema\Inference\Infer.cs (1)
2386
newElement.Annotation = copyElement.
Annotation
;
System\Xml\Schema\Preprocessor.cs (1)
2165
annotation = annotated.
Annotation
;
System\Xml\Schema\SchemaCollectionpreProcessor.cs (5)
1783
if (annotated.
Annotation
!= null)
1785
annotated.
Annotation
.Parent = schemaObject;
1786
for (int i = 0; i < annotated.
Annotation
.Items.Count; ++i)
1788
annotated.
Annotation
.Items[i].Parent = annotated.
Annotation
; //Can be documentation or appInfo
System\Xml\Schema\XmlSchemaAnyAttribute.cs (2)
85
anyAttribute.Annotation = o1.
Annotation
;
103
anyAttribute.Annotation = o1.
Annotation
;
System\Xml\Serialization\SchemaObjectWriter.cs (27)
328
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
564
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
612
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
628
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
643
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
725
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
750
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
768
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
782
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
817
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
854
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
877
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
893
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
909
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
932
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
963
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
1016
Write5_XmlSchemaAnnotation(o.
Annotation
);
1036
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
1079
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
1093
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
1116
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
1138
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
1155
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
1168
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
1214
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
1231
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
1261
Write5_XmlSchemaAnnotation((XmlSchemaAnnotation?)o.
@Annotation
);
System\Xml\Serialization\XmlSchemaImporter.cs (4)
1511
if (type.
Annotation
== null)
1513
if (type.
Annotation
.Items == null || type.
Annotation
.Items.Count == 0)
1516
foreach (XmlSchemaObject o in type.
Annotation
.Items)
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
1307
? XsdDataContractImporter.ImportActualType(xmlDataContract.XsdType?.
Annotation
, xmlDataContract.XmlName, xmlDataContract.XmlName)