27 references to AddUnique
System.Private.Xml (27)
System\Xml\Serialization\Compilation.cs (8)
372classes.AddUnique("XmlSerializationWriter", "XmlSerializationWriter"); 373classes.AddUnique("XmlSerializationReader", "XmlSerializationReader"); 390writerClass = classes.AddUnique(writerClass, writerClass); 404readerClass = classes.AddUnique(readerClass, readerClass); 469classes.AddUnique("XmlSerializationWriter", "XmlSerializationWriter"); 470classes.AddUnique("XmlSerializationReader", "XmlSerializationReader"); 484writerClass = classes.AddUnique(writerClass, writerClass); 498readerClass = classes.AddUnique(readerClass, readerClass);
System\Xml\Serialization\SchemaImporter.cs (1)
106return TypeIdentifiers.AddUnique(typeName, typeName);
System\Xml\Serialization\XmlSchemaImporter.cs (14)
208member.Name = memberScope.AddUnique(member.Name, member); 388return TypeIdentifiers.AddUnique(typeName, typeName); 836member.Name = membersScope.AddUnique(groupRepeats ? "Items" : "Item", member); 874choiceAccessor.Name = choiceIdentifier.Name = member.ChoiceIdentifier.MemberName = membersScope.AddUnique(member.ChoiceIdentifier.MemberName, choiceIdentifier); 1162member.Name = membersScope.AddUnique(member.Name, member); 1174member.Name = membersScope.AddUnique(member.Name, member); 1421member.Name = membersScope.AddUnique(name, member); 1426member.Name = membersScope.AddUnique(member.Name, member); 1471member.Name = membersScope.AddUnique(member.Name, member); 1475member.Name = membersScope.AddUnique(member.Name, member); 1502member.Name = membersScope.AddUnique(member.Name, member); 1564member.Name = membersScope.AddUnique(member.Name, member); 1767constant.Name = constants.AddUnique(constantName, constant); 1817constant.Name = constants.AddUnique(constantName, constant);
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (2)
203baseSerializer = classes.AddUnique(baseSerializer, baseSerializer); 242serializerName = classes.AddUnique($"{serializerName}Serializer", mapping);
System\Xml\Serialization\XmlSerializationILGen.cs (2)
270baseSerializer = classes.AddUnique(baseSerializer, baseSerializer); 315serializerName = classes.AddUnique($"{serializerName}Serializer", mapping);