52 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;
System.Web.Services.Description (39)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (39)
8584
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
8692
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
9024
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
9128
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
9216
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
9316
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
9408
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
9616
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
9700
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
9784
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
9868
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
9952
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
10036
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
10120
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
10204
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
10288
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
10372
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
10456
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
10540
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
10620
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
10793
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
10916
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
11010
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
11091
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
11186
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
11297
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
11430
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
11525
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
11663
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
11748
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
11890
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
11966
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
12055
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
12161
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
12389
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
12478
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
12599
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
12719
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
12819
o.
@Annotation
= Read11_XmlSchemaAnnotation(false, true);
100 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)
System.Web.Services.Description (39)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (39)
2444
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
2500
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
2574
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
2648
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
2724
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
2774
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
2813
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
2862
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
2913
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
2968
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
3008
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
3102
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
3144
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
3186
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
3228
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
3270
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
3312
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
3354
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
3396
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
3438
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
3480
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
3522
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
3564
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
3620
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
3706
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
3802
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
3851
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
3912
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
3953
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
3993
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
4041
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
4110
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
4162
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
4242
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
4321
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
4373
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
4486
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
4549
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);
4588
Write11_XmlSchemaAnnotation(@"annotation", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaAnnotation)o.
@Annotation
), false, false);