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