36 references to Add
dotnet-svcutil-lib (36)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (5)
142
classToGen.BaseTypes.
Add
(new CodeTypeReference(typeof(Object)));
143
classToGen.BaseTypes.
Add
(new CodeTypeReference(typeof(Microsoft.Xml.Serialization.IXmlSerializable)));
193
getSchemaMethod.ImplementationTypes.
Add
(classToGen.BaseTypes[1]);
210
writeXml.ImplementationTypes.
Add
(classToGen.BaseTypes[1]);
241
readXml.ImplementationTypes.
Add
(classToGen.BaseTypes[1]);
CodeDomFixup\CodeDomHelpers.cs (1)
66
m.ImplementationTypes.
Add
(ifaceType);
CodeDomFixup\CodeDomVisitors\AddAsyncOpenClose.cs (1)
29
delegateType.TypeArguments.
Add
(new CodeTypeReference(typeof(IAsyncResult)));
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (3)
343
evtArg.BaseTypes.
Add
(new CodeTypeReference(typeof(AsyncCompletedEventArgs)));
399
callbackImpl.BaseTypes.
Add
(new CodeTypeReference(typeof(object)));
400
callbackImpl.BaseTypes.
Add
(new CodeTypeReference(callbackInterface.Name));
FrameworkFork\Microsoft.CodeDom\System\CodeTypeDelegate.cs (1)
39
BaseTypes.
Add
(new CodeTypeReference("System.Delegate"));
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReference.cs (3)
122
TypeArguments.
Add
(new CodeTypeReference(genericArgs[i]));
256
type.TypeArguments.
Add
((CodeTypeReference)typeArgumentList[i]);
274
TypeArguments.
Add
((CodeTypeReference)typeArgumentList[i]);
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReferenceCollection.cs (4)
82
Add
(new CodeTypeReference(value));
90
Add
(new CodeTypeReference(value));
104
this.
Add
(value[i]);
122
this.
Add
(value[i]);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (2)
247
codeClass.BaseTypes.
Add
(new CodeTypeReference(typeof(long)));
391
codeClass.BaseTypes.
Add
(new CodeTypeReference(typeof(System.ComponentModel.INotifyPropertyChanged)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (9)
649
typeReference.TypeArguments.
Add
(keyTypeReference);
650
typeReference.TypeArguments.
Add
(valueTypeReference);
664
typeReference.TypeArguments.
Add
(GetElementTypeReference(itemContract, isItemTypeNullable));
743
typeReference.TypeArguments.
Add
(paramTypeReference);
839
type.BaseTypes.
Add
(baseContractCodeDomInfo.TypeReference);
1015
nullableOfMemberType.TypeArguments.
Add
(memberType);
1040
codeTypeDeclaration.BaseTypes.
Add
(CodeTypeIPropertyChange);
1149
baseTypeReference.TypeArguments.
Add
(GetElementTypeReference(itemContract, isItemTypeNullable));
1163
generatedType.BaseTypes.
Add
(baseTypeReference);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (5)
168
clientType.BaseTypes.
Add
(new CodeTypeReference(context.ServiceContractGenerator.GetCodeTypeReference(typeof(ClientBase<>)).BaseType, context.ContractTypeReference));
170
clientType.BaseTypes.
Add
(new CodeTypeReference(context.ServiceContractGenerator.GetCodeTypeReference(typeof(DuplexClientBase<>)).BaseType, context.ContractTypeReference));
172
clientType.BaseTypes.
Add
(context.ContractTypeReference);
473
m.ImplementationTypes.
Add
(ifaceType);
520
argsType.BaseTypes.
Add
(new CodeTypeReference(s_asyncCompletedEventArgsType));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (2)
439
channelType.BaseTypes.
Add
(context.ContractTypeReference);
440
channelType.BaseTypes.
Add
(context.ServiceContractGenerator.GetCodeTypeReference(typeof(IClientChannel)));