64 references to AddUnique
System.Web.Services (32)
System\Web\Services\Description\HttpProtocolImporter.cs (7)
234
string handlerType = ClassNames.
AddUnique
(uniqueMethodName + "CompletedEventHandler", uniqueMethodName);
235
string handlerArgs = ClassNames.
AddUnique
(uniqueMethodName + "CompletedEventArgs", uniqueMethodName);
238
string handlerName = MethodNames.
AddUnique
(uniqueMethodName + "Completed", uniqueMethodName);
239
string asyncName = MethodNames.
AddUnique
(uniqueMethodName + "Async", uniqueMethodName);
240
string callbackMember = MethodNames.
AddUnique
(uniqueMethodName + "OperationCompleted", uniqueMethodName);
241
string callbackName = MethodNames.
AddUnique
("On" + uniqueMethodName + "OperationCompleted", uniqueMethodName);
326
method.Name = MethodNames.
AddUnique
(MethodName, method);
System\Web\Services\Description\MimeTextImporter.cs (3)
38
importedReturn.TypeName = ImportContext.ClassNames.
AddUnique
(methodName + "Matches", mimeTextBinding);
64
string name = members.
AddUnique
(CodeIdentifier.MakeValid(match.Name.Length == 0 ? methodName + "Match" : match.Name), match);
105
fieldTypeName = ImportContext.ClassNames.
AddUnique
(CodeIdentifier.MakeValid(match.Type.Length == 0 ? name : match.Type), match);
System\Web\Services\Description\ProtocolImporter.cs (4)
386
className = ClassNames.
AddUnique
(CodeIdentifier.MakeValid(className), null);
434
string cancelMethodName = MethodNames.
AddUnique
(cancelAsync, cancelAsync);
616
identifiers.
AddUnique
(scope[i], scope[i]);
618
return identifiers.
AddUnique
(baseName, baseName);
System\Web\Services\Description\ProtocolReflector.cs (2)
380
bindingName = bindingNames.
AddUnique
(bindingName, binding);
403
port.Name = portNames.
AddUnique
(bindingName, port);
System\Web\Services\Description\SoapProtocolImporter.cs (10)
592
fieldName = MethodNames.
AddUnique
(fieldName, mapping);
726
string uniqueMethodName = MethodNames.
AddUnique
(CodeIdentifier.MakeValid(XmlConvert.DecodeName(methodName)), this.Operation);
739
param.name = localIdentifiers.
AddUnique
(param.name, null);
741
param.specifiedName = localIdentifiers.
AddUnique
(param.name + "Specified", null);
909
string handlerType = ClassNames.
AddUnique
(uniqueMethodName + "CompletedEventHandler", uniqueMethodName);
910
string handlerArgs = ClassNames.
AddUnique
(uniqueMethodName + "CompletedEventArgs", uniqueMethodName);
913
string handlerName = MethodNames.
AddUnique
(uniqueMethodName + "Completed", uniqueMethodName);
914
string asyncName = MethodNames.
AddUnique
(uniqueMethodName + "Async", uniqueMethodName);
915
string callbackMember = MethodNames.
AddUnique
(uniqueMethodName + "OperationCompleted", uniqueMethodName);
916
string callbackName = MethodNames.
AddUnique
("On" + uniqueMethodName + "OperationCompleted", uniqueMethodName);
System\Web\Services\Description\SoapProtocolReflector.cs (1)
124
message.Name = identifiers.
AddUnique
(methodName + part.Name, message);
System\Web\Services\Description\WebCodeGenerator.cs (5)
362
identifiers.
AddUnique
("Error", "Error");
363
identifiers.
AddUnique
("Cancelled", "Cancelled");
364
identifiers.
AddUnique
("UserState", "UserState");
368
identifiers.
AddUnique
(paramNames[i], paramNames[i]);
371
string results = identifiers.
AddUnique
("results", "results");
System.Xml (32)
System\Xml\Serialization\Compilation.cs (8)
356
classes.
AddUnique
("XmlSerializationWriter", "XmlSerializationWriter");
357
classes.
AddUnique
("XmlSerializationReader", "XmlSerializationReader");
372
writerClass = classes.
AddUnique
(writerClass, writerClass);
386
readerClass = classes.
AddUnique
(readerClass, readerClass);
460
classes.
AddUnique
("XmlSerializationWriter", "XmlSerializationWriter");
461
classes.
AddUnique
("XmlSerializationReader", "XmlSerializationReader");
473
writerClass = classes.
AddUnique
(writerClass, writerClass);
486
readerClass = classes.
AddUnique
(readerClass, readerClass);
System\Xml\Serialization\SchemaImporter.cs (1)
160
return TypeIdentifiers.
AddUnique
(typeName, typeName);
System\Xml\Serialization\SoapCodeExporter.cs (1)
238
string fieldName = memberScope.
AddUnique
(CodeExporter.MakeFieldName(member.Name), member);
System\Xml\Serialization\SoapSchemaImporter.cs (3)
498
member.Name = members.
AddUnique
(member.Name, member);
501
member.Name = members.
AddUnique
(member.Name, member);
576
constant.Name = constants.
AddUnique
(constantName, constant);
System\Xml\Serialization\XmlCodeExporter.cs (1)
723
string fieldName = memberScope.
AddUnique
(MakeFieldName(member.Name), member);
System\Xml\Serialization\XmlSchemaImporter.cs (14)
239
member.Name = memberScope.
AddUnique
(member.Name, member);
443
return TypeIdentifiers.
AddUnique
(typeName, typeName);
816
member.Name = membersScope.
AddUnique
(groupRepeats ? "Items" : "Item", member);
851
choiceAccessor.Name = choiceIdentifier.Name = member.ChoiceIdentifier.MemberName = membersScope.
AddUnique
(member.ChoiceIdentifier.MemberName, choiceIdentifier);
1090
member.Name = membersScope.
AddUnique
(member.Name, member);
1100
member.Name = membersScope.
AddUnique
(member.Name, member);
1334
member.Name = membersScope.
AddUnique
(name, member);
1338
member.Name = membersScope.
AddUnique
(member.Name, member);
1375
member.Name = membersScope.
AddUnique
(member.Name, member);
1378
member.Name = membersScope.
AddUnique
(member.Name, member);
1402
member.Name = membersScope.
AddUnique
(member.Name, member);
1455
member.Name = membersScope.
AddUnique
(member.Name, member);
1628
constant.Name = constants.
AddUnique
(constantName, constant);
1670
constant.Name = constants.
AddUnique
(constantName, constant);
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (2)
213
baseSerializer = classes.
AddUnique
(baseSerializer, baseSerializer);
251
serializerName = classes.
AddUnique
(serializerName + "Serializer", mapping);
System\Xml\Serialization\XmlSerializationILGen.cs (2)
249
baseSerializer = classes.
AddUnique
(baseSerializer, baseSerializer);
297
serializerName = classes.
AddUnique
(serializerName + "Serializer", mapping);