371 references to Add
Microsoft.Activities.Build (1)
Microsoft\Activities\Build\BeforeInitializeComponentExtension.cs (1)
170typeDeclaration.Members.Add(new CodeSnippetTypeMember(namespaceAndClassNameSnippet));
PresentationBuildTasks (15)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (15)
1115_ccRoot.CodeClass.Members.Add(_ccRoot.StyleConnectorFn); 1290_ccRoot.CodeClass.Members.Add(_ccRoot.HookupFn); 2013_ccRoot.CodeClass.Members.Add(cmmEventHandler); 2025_ccRoot.CodeClass.Members.Add(cmmEventHandlerHelper); 2179_ccRoot.CodeClass.Members.Add(field); 2191_ccRoot.CodeClass.Members.Add(snippet); 2530_ccRoot.CodeClass.Members.Add(cmmCD); 2631_ccRoot.CodeClass.Members.Add(cmfCL); 2710ctdClass.Members.Add(cmmCI); 2739ctdClass.Members.Add(cmmGPV); 2768ctdClass.Members.Add(cmmSPV); 2821ctdClass.Members.Add(cmmCD); 2846ctdClass.Members.Add(cmmAEH); 3153_ccRoot.CodeClass.Members.Add(cmmMain); 3359_codeClass.Members.Add(_initializeComponentFn);
System (2)
compmod\system\codedom\CodeTypeMemberCollection.cs (2)
81this.Add(value[i]); 96this.Add(value[i]);
System.Activities (38)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (38)
447descriptor.CodeTypeDeclaration.Members.Add(getValueTypeValuesMethod); 448descriptor.CodeTypeDeclaration.Members.Add(GenerateSetValueTypeValues(descriptor)); 450descriptor.CodeTypeDeclarationForReadOnly.Members.Add(getValueTypeValuesMethod); 479contextDescriptor.CodeTypeDeclaration.Members.Add(accessorField); 481contextDescriptor.CodeTypeDeclarationForReadOnly.Members.Add(accessorField); 522contextDescriptor.CodeTypeDeclaration.Members.Add(accessorProperty); 532contextDescriptor.CodeTypeDeclarationForReadOnly.Members.Add(accessorPropertyForReadOnly); 563contextDescriptor.CodeTypeDeclaration.Members.Add(accessorProperty); 576contextDescriptor.CodeTypeDeclarationForReadOnly.Members.Add(accessorPropertyForReadOnly); 716classDeclaration.Members.Add(compiledRootField); 728classDeclaration.Members.Add(languageProperty); 735classDeclaration.Members.Add(dataContextActivitiesField); 743classDeclaration.Members.Add(forImplementationField); 747classDeclaration.Members.Add(GenerateCompiledExpressionRootConstructor()); 827classDeclaration.Members.Add(getLocationsMethod); 917classDeclaration.Members.Add(getExpressionTreeForExpressionMethod); 1004classDeclaration.Members.Add(invokeExpressionMethod); 1350classDeclaration.Members.Add(isValidMethod); 1438typeDeclaration.Members.Add(expressionGetMethod); 1441typeDeclaration.Members.Add(expressionGetValueTypeAccessorMethod); 1449dataContextDescriptor.CodeTypeDeclaration.Members.Add(expressionSetMethod); 1452dataContextDescriptor.CodeTypeDeclaration.Members.Add(expressionSetValueTypeAccessorMethod); 1460dataContextDescriptor.CodeTypeDeclaration.Members.Add(statementMethod); 1463dataContextDescriptor.CodeTypeDeclaration.Members.Add(expressionSetValueTypeAccessorMethod); 1485dataContextDescriptor.CodeTypeDeclaration.Members.Add(expressionMethod); 1524dataContextDescriptor.CodeTypeDeclarationForReadOnly.Members.Add(expressionMethod); 1528dataContextDescriptor.CodeTypeDeclaration.Members.Add(expressionMethod); 1751this.classDeclaration.Members.Add(typedDataContext); 1773typedDataContext.Members.Add(GenerateDataContextActivitiesHelper()); 1781typedDataContext.Members.Add(offsetField); 1788typedDataContext.Members.Add(expectedLocationsCountField); 1790typedDataContext.Members.Add(GenerateLocationReferenceActivityContextConstructor()); 1791typedDataContext.Members.Add(GenerateLocationConstructor()); 1792typedDataContext.Members.Add(GenerateLocationReferenceConstructor()); 1793typedDataContext.Members.Add(GenerateCacheHelper()); 1794typedDataContext.Members.Add(GenerateSetLocationsOffsetMethod()); 2293descriptor.CodeTypeDeclarationForReadOnly.Members.Add(validateMethod); 2297descriptor.CodeTypeDeclaration.Members.Add(validateMethod);
System.Data (61)
fx\src\data\System\Data\CodeGen\datacache.cs (61)
81dataSetClass.Members.Add(CreateTypedRowEventHandler(table)); 84dataSetClass.Members.Add(CreateTypedTable( table)); 85dataSetClass.Members.Add(CreateTypedRow( table)); 86dataSetClass.Members.Add(CreateTypedRowEvent(table)); 325dataTableClass.Members.Add(FieldDecl(typeof(DataColumn), TableColumnFieldName(table.Columns[i]))); 328dataTableClass.Members.Add(EventDecl(stRowClassName + "ChangeEventHandler", stRowClassName + "Changed" )); 329dataTableClass.Members.Add(EventDecl(stRowClassName + "ChangeEventHandler", stRowClassName + "Changing")); 330dataTableClass.Members.Add(EventDecl(stRowClassName + "ChangeEventHandler", stRowClassName + "Deleted" )); 331dataTableClass.Members.Add(EventDecl(stRowClassName + "ChangeEventHandler", stRowClassName + "Deleting")); 341dataTableClass.Members.Add(constructor); 352dataTableClass.Members.Add(constructor); 388dataTableClass.Members.Add(constructor); 397dataTableClass.Members.Add(countProp); 407dataTableClass.Members.Add(colProp); 417dataTableClass.Members.Add(thisIndex); 426dataTableClass.Members.Add(addMethod); 491dataTableClass.Members.Add(addByColName); 530dataTableClass.Members.Add(findBy); 540dataTableClass.Members.Add(getEnumerator); 552dataTableClass.Members.Add(clone); 560dataTableClass.Members.Add(createInstance); 699dataTableClass.Members.Add(tableInitVars); 701dataTableClass.Members.Add(tableInitClass); 709dataTableClass.Members.Add(newTableRow); 718dataTableClass.Members.Add(newRowFromBuilder); 726dataTableClass.Members.Add(getRowType); 728dataTableClass.Members.Add(CreateOnRowEventMethod("Changed" , stRowClassName)); 729dataTableClass.Members.Add(CreateOnRowEventMethod("Changing", stRowClassName)); 730dataTableClass.Members.Add(CreateOnRowEventMethod("Deleted" , stRowClassName)); 731dataTableClass.Members.Add(CreateOnRowEventMethod("Deleting", stRowClassName)); 740dataTableClass.Members.Add(removeMethod); 764rowClass.Members.Add(FieldDecl(stTblClassName, stTblFieldName)); 772rowClass.Members.Add(constructor); 887rowClass.Members.Add(nullValueField); 894rowClass.Members.Add(rowProp); 903rowClass.Members.Add(isNull); 911rowClass.Members.Add(setNull); 927rowClass.Members.Add(childArray); 947rowClass.Members.Add(anotherProp); 964rowClass.Members.Add(FieldDecl(stRowConcreateClassName, "eventRow")); 966rowClass.Members.Add(FieldDecl(typeof(DataRowAction), "eventAction")); 979rowClass.Members.Add(constructor); 987rowClass.Members.Add(rowProp); 995rowClass.Members.Add(rowProp); 1022dataSetClass.Members.Add(FieldDecl(TableClassName(dataSet.Tables[i]), TableFieldName(dataSet.Tables[i]))); 1027dataSetClass.Members.Add(FieldDecl(typeof(DataRelation), RelationFieldName(dataSet.Relations[i]))); 1040dataSetClass.Members.Add(constructor); 1103dataSetClass.Members.Add(constructor); 1115dataSetClass.Members.Add(clone); 1121dataSetClass.Members.Add(initDataSetVarsMethod); 1172dataSetClass.Members.Add(shouldSerializeTables); 1180dataSetClass.Members.Add(shouldSerializeRelations); 1216dataSetClass.Members.Add(getTypedDataSetSchema); 1245dataSetClass.Members.Add(readXmlSerializable); 1259dataSetClass.Members.Add(getSchemaSerializable); 1352dataSetClass.Members.Add(initVarsMethod); 1354dataSetClass.Members.Add(initClassMethod); 1368dataSetClass.Members.Add(prop); 1373dataSetClass.Members.Add(shouldSerializeTableProperty); 1385dataSetClass.Members.Add(schemaChanged); 1405dataSetClass.Members.Add(initExpressionMethod);
System.Data.Entity.Design (19)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (3)
423viewStoringType.Members.Add(viewStoringTypeConstructor); 498typeDeclaration.Members.Add(getViewAtMethod); 522typeDeclaration.Members.Add(viewMethod);
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (8)
92typeDecl.Members.Add(codeProperty); 95typeDecl.Members.Add(codeField); 105typeDecl.Members.Add(codeProperty); 114typeDecl.Members.Add(functionMethod); 226typeDecl.Members.Add(emptyCtor); 245typeDecl.Members.Add(connectionStringCtor); 263typeDecl.Members.Add(connectionWorkspaceCtor); 275typeDecl.Members.Add(onContextCreatedPartialMethod);
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (2)
58typeDecl.Members.Add(property); 64typeDecl.Members.Add(property);
System\Data\EntityModel\Emitters\PropertyEmitter.cs (5)
80typeDecl.Members.Add(memberProperty); 100typeDecl.Members.Add(onChangingDomMethod); 107typeDecl.Members.Add(onChangedDomMethod); 124typeDecl.Members.Add(memberField); 131typeDecl.Members.Add(complexInitField);
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (1)
239typeDecl.Members.Add(method);
System.Data.Services.Design (16)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (8)
101typeDecl.Members.Add(codeProperty); 104typeDecl.Members.Add(codeField); 114typeDecl.Members.Add(codeProperty); 225typeDecl.Members.Add(connectionWorkspaceCtor); 237typeDecl.Members.Add(onContextCreatedPartialMethod); 315typeDecl.Members.Add(resolveTypeFromName); 398typeDecl.Members.Add(resolveNameFromType); 429typeDecl.Members.Add(rootNamespaceField);
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (2)
52typeDecl.Members.Add(property); 86typeDecl.Members.Add(memberField);
System\Data\EntityModel\Emitters\PropertyEmitter.cs (5)
87typeDecl.Members.Add(memberProperty); 106typeDecl.Members.Add(onChangingDomMethod); 112typeDecl.Members.Add(onChangedDomMethod); 129typeDecl.Members.Add(memberField); 136typeDecl.Members.Add(complexInitField);
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (1)
240typeDecl.Members.Add(method);
System.Data.SqlXml (2)
System\Xml\Xsl\Xslt\Scripts.cs (1)
71typeDecl.Members.Add(scriptSnippet);
System\Xml\Xsl\XsltOld\Compiler.cs (1)
705scriptClass.Members.Add(scriptSnippet);
System.Management (87)
WmiGenerator.cs (87)
492cc.Members.Add(GenerateTypeConverterClass()); 496cc.Members.Add(GenerateSystemPropertiesClass()); 1000cc.Members.Add (cmp); 1043cc.Members.Add(cmp); 1115cc.Members.Add(cmp); 1140SysPropsClass.Members.Add(cctor); 1193SysPropsClass.Members.Add(cmp); 1200SysPropsClass.Members.Add(cf); 1346cc.Members.Add (cmp2); 1438cc.Members.Add (cmm); 1603cc.Members.Add(cmp); 1606cc.Members.Add(cmm2); 1908EnumObj.Members.Add(cmf); 1920EnumObj.Members.Add(cmf); 1930EnumObj.Members.Add(cmf); 1939EnumObj.Members.Add(cmf); 1943cc.Members.Add(EnumObj); 2014EnumObj.Members.Add(cmf); 2026EnumObj.Members.Add(cmf); 2044EnumObj.Members.Add(cmf); 2055EnumObj.Members.Add(cmf); 2059cc.Members.Add(EnumObj); 2141cc.Members.Add(cmm); 2181cc.Members.Add(cctor); 2239cc.Members.Add(cctor); 2299cc.Members.Add(cctor); 2331cc.Members.Add(cctor); 2361cc.Members.Add(cctor); 2389cc.Members.Add(cctor); 2423cc.Members.Add(cctor); 2458cc.Members.Add(cctor); 2499cc.Members.Add(cctor); 2548cc.Members.Add(cctor); 2613cc.Members.Add(cctor); 2684cc.Members.Add(cctor); 2776cc.Members.Add(cmmInit); 3317cc.Members.Add(cmm); 3347cc.Members.Add(cmm); 3379cc.Members.Add(cmm); 3410cc.Members.Add(cmm); 3443cc.Members.Add(cmm); 3568cc.Members.Add(cmm); 3601cc.Members.Add(cmm); 3633cc.Members.Add(cmm); 3735cc.Members.Add(cmm); 3767cc.Members.Add(cf); 3812CodeConvertorClass.Members.Add(cf); 3819CodeConvertorClass.Members.Add(cf); 3845CodeConvertorClass.Members.Add(cctor); 3867CodeConvertorClass.Members.Add(cmm); 3891CodeConvertorClass.Members.Add(cmm); 3917CodeConvertorClass.Members.Add(cmm); 3941CodeConvertorClass.Members.Add(cmm); 3962CodeConvertorClass.Members.Add(cmm); 3987CodeConvertorClass.Members.Add(cmm); 4006CodeConvertorClass.Members.Add(cmm); 4025CodeConvertorClass.Members.Add(cmm); 4044CodeConvertorClass.Members.Add(cmm); 4063CodeConvertorClass.Members.Add(cmm); 4285CodeConvertorClass.Members.Add(cmm); 4313ccc.Members.Add(cf); 4330ccc.Members.Add(cctor); 4348ccc.Members.Add(cmp); 4366ccc.Members.Add(cmp); 4381ccc.Members.Add(cmp); 4457ccc.Members.Add(cmm); 4474ccc.Members.Add(cmm); 4506cc.Members.Add(ccc); 4529ecc.Members.Add(cf); 4547ecc.Members.Add(cctor); 4569ecc.Members.Add(cmp); 4601ecc.Members.Add(cmm); 4618ecc.Members.Add(cmm); 4620ccc.Members.Add(ecc); 5074cc.Members.Add(cmm); 5109cc.Members.Add(cmm); 5493cc.Members.Add (cmp); 5564cc.Members.Add(cmm); 5685cc.Members.Add(cmm); 6120cc.Members.Add(cmp); 6363cc.Members.Add(cmm); 6395cc.Members.Add(cmm); 6843cc.Members.Add(cmmdt); 7140cc.Members.Add(cmmts); 7439cc.Members.Add(cmmdt); 7773cc.Members.Add(cmmts); 7818cc.Members.Add(cmmInit);
System.Runtime.Serialization (20)
System\Runtime\Serialization\CodeExporter.cs (20)
502containingType.Members.Add(type); 904type.Members.Add(field); 905type.Members.Add(property); 1044type.Members.Add(extensionDataObjectField); 1047type.Members.Add(extensionDataObjectProperty); 1059codeTypeDeclaration.Members.Add(memberEvent); 1063codeTypeDeclaration.Members.Add(raisePropertyChangedEventMethod); 1114type.Members.Add(enumMember); 1150type.Members.Add(ISerializableBaseConstructor); 1151type.Members.Add(SerializationInfoField); 1152type.Members.Add(SerializationInfoProperty); 1153type.Members.Add(GetObjectDataMethod); 1166type.Members.Add(ISerializableDerivedConstructor); 1268type.Members.Add(NodeArrayField); 1269type.Members.Add(NodeArrayProperty); 1270type.Members.Add(ReadXmlMethod); 1271type.Members.Add(WriteXmlMethod); 1272type.Members.Add(GetSchemaMethod); 1294type.Members.Add(typeNameField); 1296type.Members.Add(GetSchemaStaticMethod);
System.ServiceModel (21)
System\ServiceModel\Description\ClientClassGenerator.cs (14)
200clientType.Members.Add(ctor); 236int methodPosition = clientType.Members.Add(methodImpl); 245clientType.Members.Add(helperMethod); 540argsType.Members.Add(ctor); 573argsType.Members.Add(resultsField); 611ownerTypeDecl.Members.Add(property); 635clientType.Members.Add(operationCompletedEvent); 648clientType.Members.Add(beginOperationDelegate); 690clientType.Members.Add(onBeginOperationMethod); 703clientType.Members.Add(endOperationDelegate); 765clientType.Members.Add(onEndOperationMethod); 778clientType.Members.Add(operationCompletedDelegate); 834clientType.Members.Add(operationCompletedMethod); 885clientType.Members.Add(eventAsyncMethod);
System\ServiceModel\Description\OperationGenerator.cs (3)
570typeDecl.Members.Add(memberDecl); 826typeDecl.Members.Add(defaultCtor); 839typeDecl.Members.Add(otherCtor);
System\ServiceModel\Description\ServiceContractGenerator.cs (4)
334declaringType.Members.Add(syncMethod); 346declaringType.Members.Add(beginMethod); 351declaringType.Members.Add(endMethod); 376declaringType.Members.Add(taskBasedAsyncMethod);
System.ServiceModel.Activation (1)
System\ServiceModel\Activities\Activation\XamlBuildProviderExtension.cs (1)
178codeTypeDeclaration.Members.Add(codeMemberMethod);
System.Web (50)
Compilation\BaseCodeDomTreeGenerator.cs (11)
348_sourceDataClass.Members.Add(_ctor); 380_sourceDataClass.Members.Add(method); 443_sourceDataClass.Members.Add(initializedField); 497_sourceDataClass.Members.Add(literal); 534_intermediateClass.Members.Add(prop); 562_sourceDataClass.Members.Add(prop); 573_sourceDataClass.Members.Add(field); 605_sourceDataClass.Members.Add(new CodeMemberField(propType, fieldName)); 623_sourceDataClass.Members.Add(prop); 663_sourceDataClass.Members.Add(prop); 783type.Members.Add(method);
Compilation\BaseTemplateCodeDomTreeGenerator.cs (6)
180_sourceDataClass.Members.Add(method); 988_sourceDataClass.Members.Add(method); 1208_intermediateClass.Members.Add(field); 1333_sourceDataClass.Members.Add(method); 1394_sourceDataClass.Members.Add(method); 1450_sourceDataClass.Members.Add(method);
Compilation\BrowserCapabilitiesCompiler.cs (3)
305factoryType.Members.Add(method); 355factoryType.Members.Add(cmm); 432factoryType.Members.Add(cmm);
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (3)
66_factoryClass.Members.Add(dummySnippet); 71_factoryClass.Members.Add(ctor); 90_factoryClass.Members.Add(method);
Compilation\PageCodeDomTreeGenerator.cs (8)
70_sourceDataClass.Members.Add(fileDependencies); 175_sourceDataClass.Members.Add(outputCacheSettingsField); 358_sourceDataClass.Members.Add(method); 474_sourceDataClass.Members.Add(method); 495_sourceDataClass.Members.Add(method); 532_sourceDataClass.Members.Add(method); 553_sourceDataClass.Members.Add(method); 604_sourceDataClass.Members.Add(method);
Compilation\PageThemeCodeDomTreeGenerator.cs (4)
48_sourceDataClass.Members.Add(member); 75_sourceDataClass.Members.Add(field); 111_sourceDataClass.Members.Add(field); 148_sourceDataClass.Members.Add(field);
Compilation\ProfileBuildProvider.cs (3)
224type.Members.Add(prop); 256type.Members.Add(prop); 296type.Members.Add(method);
Compilation\TemplateControlCodeDomTreeGenerator.cs (7)
48_sourceDataClass.Members.Add(stringResourcePointer); 132_intermediateClass.Members.Add(prop); 156_sourceDataClass.Members.Add(bindMethod); 184_sourceDataClass.Members.Add(method); 238_sourceDataClass.Members.Add(prop); 270_intermediateClass.Members.Add(prop); 321_sourceDataClass.Members.Add(ctorCode);
Configuration\BrowserCapabilitiesCodeGenerator.cs (5)
742factoryType.Members.Add(method); 902typeDeclaration.Members.Add(method); 965typeDeclaration.Members.Add(method); 1082ctd.Members.Add(cmm); 1116ctd.Members.Add(cmm);
System.Web.Services (9)
System\Web\Services\Description\WebCodeGenerator.cs (9)
113codeClass.Members.Add(field); 124codeClass.Members.Add(member); 151codeClass.Members.Add(ctor); 195codeClass.Members.Add(method); 264members.Add(eventCompleted); 282members.Add(callback); 373codeClass.Members.Add(data); 390codeClass.Members.Add(ctor); 395codeClass.Members.Add(CreatePropertyDeclaration(data, paramNames[i], paramTypes[i], index++));
System.Workflow.Activities (2)
WebServiceReceive.cs (2)
684webServiceClass.Members.Add(this.GetWebServiceMethodDeclaraion(methodInfo, webserviceInput.IsActivating, language)); 767typeDeclaration.Members.Add(constructor);
System.Workflow.ComponentModel (3)
AuthoringOM\Serializer\ActivityTypeCodeDomSerializer.cs (1)
48typeDecl.Members.Add(ctor);
Shared\XomlSerializationHelpers.cs (2)
187codeSegments.Add(codeSegment); 331activityTypeDeclaration.Members.Add(codeSegmentMember);
System.Xml (16)
System\Xml\Serialization\CodeExporter.cs (3)
272codeClass.Members.Add(field); 339codeClass.Members.Add(PropertyChangedEvent); 340codeClass.Members.Add(RaisePropertyChangedEventMethod);
System\Xml\Serialization\SoapCodeExporter.cs (6)
224codeClass.Members.Add(field); 233codeClass.Members.Add(field); 243codeClass.Members.Add(field); 248codeClass.Members.Add(prop); 253codeClass.Members.Add(field); 259codeClass.Members.Add(prop);
System\Xml\Serialization\XmlCodeExporter.cs (7)
505codeClass.Members.Add(ctor); 709codeClass.Members.Add(field); 718codeClass.Members.Add(field); 728codeClass.Members.Add(field); 733codeClass.Members.Add(prop); 738codeClass.Members.Add(field); 744codeClass.Members.Add(prop);
XamlBuildTask (8)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (8)
94result.Members.Add(new CodeMemberField() { Name = "_contentLoaded", Type = new CodeTypeReference(typeof(bool)) }); 103result.Members.Add(fieldMember); 120result.Members.Add(codeSnippet); 125result.Members.Add(initializeMethod); 134result.Members.Add(GenerateFindResourceMethod(classData)); 143result.Members.Add(GenerateConstructorImpl(initializeMethod)); 1069result.Members.Add(GenerateLoadAssembliesMethod(loadedAssemblyList)); 1072result.Members.Add(GenerateLoadMethod());