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