82 references to Add
PresentationBuildTasks (8)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (8)
1256_ccRoot.CodeClass.BaseTypes.Add(iComponentConnector); 1263_ccRoot.InitializeComponentFn.ImplementationTypes.Add(iComponentConnector); 2241_ccRoot.CodeClass.BaseTypes[0].TypeArguments.Add(new CodeTypeReference(_typeArgsList[i])); 2370ctrConstructedType.TypeArguments.Add(ctrTypeArg); 2414ctdClass.BaseTypes.Add(ctrBaseClass); 2421ctdClass.BaseTypes.Add(ctrBaseClass); 2545cmmLC.ImplementationTypes.Add(new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IComponentConnector])); 2663ctdClass.BaseTypes.Add(new CodeTypeReference("System.Windows.Markup.InternalTypeHelper"));
System (8)
compmod\system\codedom\CodeTypeDelegate.cs (1)
42BaseTypes.Add(new CodeTypeReference("System.Delegate"));
compmod\system\codedom\CodeTypeReference.cs (3)
110TypeArguments.Add(new CodeTypeReference(genericArgs[i])); 228type.TypeArguments.Add((CodeTypeReference)typeArgumentList[i]); 243TypeArguments.Add((CodeTypeReference)typeArgumentList[i]);
compmod\system\codedom\CodeTypeReferenceCollection.cs (4)
77Add(new CodeTypeReference(value)); 84Add(new CodeTypeReference(value)); 95this.Add(value[i]); 110this.Add(value[i]);
System.Activities (6)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (6)
712classDeclaration.BaseTypes.Add(new CodeTypeReference(typeof(ICompiledExpressionRoot))); 723languageProperty.ImplementationTypes.Add(new CodeTypeReference(typeof(ICompiledExpressionRoot))); 812getLocationsMethod.ImplementationTypes.Add(new CodeTypeReference(typeof(ICompiledExpressionRoot))); 887getExpressionTreeForExpressionMethod.ImplementationTypes.Add(new CodeTypeReference(typeof(ICompiledExpressionRoot))); 928invokeExpressionMethod.ImplementationTypes.Add(new CodeTypeReference(typeof(ICompiledExpressionRoot))); 1274isValidMethod.ImplementationTypes.Add(new CodeTypeReference(typeof(ICompiledExpressionRoot)));
System.Data (1)
fx\src\data\System\Data\CodeGen\datacache.cs (1)
537getEnumerator.ImplementationTypes.Add(Type("System.Collections.IEnumerable"));
System.Data.Entity.Design (11)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (2)
71typeDecl.BaseTypes.Add(eventArgs.BaseType); 75typeDecl.BaseTypes.Add(TypeReference.ObjectContext);
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (3)
186initReferenceMethod.TypeArguments.Add(Generator.GetLeastPossibleQualifiedTypeReference(GetEntityType(target))); 233initCollectionMethod.TypeArguments.Add(Generator.GetLeastPossibleQualifiedTypeReference(GetEntityType(target))); 352getMethod.TypeArguments.Add(Generator.GetLeastPossibleQualifiedTypeReference(GetEntityType(target)));
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (1)
106typeDecl.BaseTypes.Add(new CodeTypeReference(interfaceType));
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (2)
300typeDecl.BaseTypes.Add(eventReturnedBaseType); 306typeDecl.BaseTypes.Add(baseType);
System\Data\EntityModel\Emitters\TypeReference.cs (3)
90typeRef.TypeArguments.Add(argument); 211typeRef.TypeArguments.Add(typeParameter); 230typeRef.TypeArguments.Add(ForType(innerType));
System.Data.Services.Design (7)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (2)
66typeDecl.BaseTypes.Add(eventArgs.BaseType); 70typeDecl.BaseTypes.Add(TypeReference.ObjectContext);
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (1)
99typeDecl.BaseTypes.Add(new CodeTypeReference(interfaceType, CodeTypeReferenceOptions.GlobalReference));
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (2)
298typeDecl.BaseTypes.Add(eventReturnedBaseType); 304typeDecl.BaseTypes.Add(baseType);
System\Data\EntityModel\Emitters\TypeReference.cs (2)
174typeRef.TypeArguments.Add(typeParameter); 193typeRef.TypeArguments.Add(ForType(innerType));
System.Management (1)
WmiGenerator.cs (1)
273cc.BaseTypes.Add(new CodeTypeReference(PrivateNamesUsed["ComponentClass"].ToString()));
System.Runtime.Serialization (10)
System\Runtime\Serialization\CodeExporter.cs (10)
651typeReference.TypeArguments.Add(keyTypeReference); 652typeReference.TypeArguments.Add(valueTypeReference); 666typeReference.TypeArguments.Add(GetElementTypeReference(itemContract, isItemTypeNullable)); 745typeReference.TypeArguments.Add(paramTypeReference); 846type.BaseTypes.Add(baseContractCodeDomInfo.TypeReference); 1028nullableOfMemberType.TypeArguments.Add(memberType); 1057codeTypeDeclaration.BaseTypes.Add(CodeTypeIPropertyChange); 1160type.BaseTypes.Add(baseContractCodeDomInfo.TypeReference); 1217baseTypeReference.TypeArguments.Add(GetElementTypeReference(itemContract, isItemTypeNullable)); 1231generatedType.BaseTypes.Add(baseTypeReference);
System.ServiceModel (7)
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(asyncCompletedEventArgsType));
System\ServiceModel\Description\ServiceContractGenerator.cs (2)
493channelType.BaseTypes.Add(context.ContractTypeReference); 494channelType.BaseTypes.Add(context.ServiceContractGenerator.GetCodeTypeReference(typeof(IClientChannel)));
System.ServiceModel.Activation (1)
System\ServiceModel\Activities\Activation\XamlBuildProviderExtension.cs (1)
164codeTypeDeclaration.BaseTypes.Add(new CodeTypeReference(typeof(WorkflowService)));
System.Web (14)
Compilation\BaseCodeDomTreeGenerator.cs (3)
275_sourceDataClass.BaseTypes.Add(CodeDomUtility.BuildGlobalCodeTypeReference( 286_intermediateClass.BaseTypes.Add(CodeDomUtility.BuildGlobalCodeTypeReference(Parser.BaseType)); 423_intermediateClass.BaseTypes.Add(new CodeTypeReference(t));
Compilation\BrowserCapabilitiesCompiler.cs (1)
290factoryType.BaseTypes.Add(new CodeTypeReference(baseType));
Compilation\PageCodeDomTreeGenerator.cs (6)
45_intermediateClass.BaseTypes.Add(new CodeTypeReference(typeof(IRequiresSessionState))); 48_intermediateClass.BaseTypes.Add(new CodeTypeReference(typeof(IReadOnlySessionState))); 53_sourceDataClass.BaseTypes.Add(new CodeTypeReference(typeof(IHttpAsyncHandler))); 459method.ImplementationTypes.Add(new CodeTypeReference(typeof(IHttpAsyncHandler))); 517method.ImplementationTypes.Add(new CodeTypeReference(typeof(IHttpAsyncHandler))); 586_sourceDataClass.BaseTypes.Add(new CodeTypeReference(typeof(IHttpHandler)));
Compilation\ProfileBuildProvider.cs (3)
111type.BaseTypes.Add(new CodeTypeReference(baseType)); 114type.BaseTypes.Add(new CodeTypeReference(ProfileBase.InheritsFromTypeString)); 261grpType.BaseTypes.Add(new CodeTypeReference(typeof(ProfileGroupBase)));
Configuration\BrowserCapabilitiesCodeGenerator.cs (1)
729factoryType.BaseTypes.Add(new CodeTypeReference("System.Web.Configuration.BrowserCapabilitiesFactoryBase"));
System.Web.Services (1)
System\Web\Services\Description\WebCodeGenerator.cs (1)
359codeClass.BaseTypes.Add(new CodeTypeReference(typeof(AsyncCompletedEventArgs)));
System.Workflow.Activities (3)
Rules\Expressions.cs (2)
1694newReference.TypeArguments.Add(TypeReferenceExpression.CloneType(typeReference)); 1945newType.TypeArguments.Add(CloneType(typeReference));
WebServiceReceive.cs (1)
758typeDeclaration.BaseTypes.Add(new CodeTypeReference("WorkflowWebService"));
System.Xml (2)
System\Xml\Serialization\CodeExporter.cs (2)
219codeClass.BaseTypes.Add(new CodeTypeReference(typeof(long))); 338codeClass.BaseTypes.Add(new CodeTypeReference(typeof(System.ComponentModel.INotifyPropertyChanged)));
XamlBuildTask (2)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (2)
137result.BaseTypes.Add(new CodeTypeReference(typeof(ISupportInitialize))); 992codeTypeReference.TypeArguments.Add(argumentCodeTypeReference);