3 types derived from CodeMemberMethod
System (3)
141 instantiations of CodeMemberMethod
PresentationBuildTasks (11)
System.Activities (18)
System.Data (1)
System.Data.Entity.Design (8)
System.Data.Services.Design (8)
System.Management (39)
System.Runtime.Serialization (6)
System.ServiceModel (11)
System.ServiceModel.Activation (1)
System.Web (25)
System.Web.Services (1)
System.Workflow.Activities (1)
System.Workflow.ComponentModel (4)
System.Xml (1)
XamlBuildTask (6)
361 references to CodeMemberMethod
PresentationBuildTasks (22)
System (21)
System.Activities (41)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (41)
445CodeMemberMethod getValueTypeValuesMethod = GenerateGetValueTypeValues(descriptor);
718CodeMemberMethod languageProperty = new CodeMemberMethod();
806CodeMemberMethod getLocationsMethod = new CodeMemberMethod();
830void GenerateEmptyRequiredLocationsBody(CodeMemberMethod getLocationsMethod)
835void GenerateRequiredLocationsBody(CodeMemberMethod getLocationsMethod)
881CodeMemberMethod getExpressionTreeForExpressionMethod = new CodeMemberMethod();
922CodeMemberMethod invokeExpressionMethod = new CodeMemberMethod();
1267CodeMemberMethod isValidMethod = new CodeMemberMethod();
1437CodeMemberMethod expressionGetMethod = GenerateGetMethod(activity, resultType, expressionText, nextExpressionId);
1440CodeMemberMethod expressionGetValueTypeAccessorMethod = GenerateGetMethodWrapper(expressionGetMethod);
1448CodeMemberMethod expressionSetMethod = GenerateSetMethod(activity, resultType, expressionText, nextExpressionId);
1451CodeMemberMethod expressionSetValueTypeAccessorMethod = GenerateSetMethodWrapper(expressionSetMethod);
1459CodeMemberMethod statementMethod = GenerateStatementMethod(activity, expressionText, nextExpressionId);
1462CodeMemberMethod expressionSetValueTypeAccessorMethod = GenerateStatementMethodWrapper(statementMethod);
1475CodeMemberMethod expressionMethod = new CodeMemberMethod();
1532CodeMemberMethod GenerateGetMethod(Activity activity, Type resultType, string expressionText, int nextExpressionId)
1534CodeMemberMethod expressionMethod = new CodeMemberMethod();
1549CodeMemberMethod GenerateGetMethodWrapper(CodeMemberMethod expressionMethod)
1551CodeMemberMethod wrapperMethod = new CodeMemberMethod();
1570CodeMemberMethod GenerateSetMethod(Activity activity, Type resultType, string expressionText, int nextExpressionId)
1579CodeMemberMethod expressionMethod = new CodeMemberMethod();
1596CodeMemberMethod GenerateSetMethodWrapper(CodeMemberMethod expressionMethod)
1598CodeMemberMethod wrapperMethod = new CodeMemberMethod();
1627CodeMemberMethod GenerateStatementMethod(Activity activity, string expressionText, int nextExpressionId)
1629CodeMemberMethod expressionMethod = new CodeMemberMethod();
1643CodeMemberMethod GenerateStatementMethodWrapper(CodeMemberMethod expressionMethod)
1645CodeMemberMethod wrapperMethod = new CodeMemberMethod();
1669CodeMemberMethod GenerateGetValueTypeValues(CompiledDataContextDescriptor descriptor)
1671CodeMemberMethod fetchMethod = new CodeMemberMethod();
1707CodeMemberMethod GenerateSetValueTypeValues(CompiledDataContextDescriptor descriptor)
1709CodeMemberMethod pushMethod = new CodeMemberMethod();
1811CodeMemberMethod GenerateDataContextActivitiesHelper()
1813CodeMemberMethod dataContextActivitiesHelper = new CodeMemberMethod();
1848CodeMemberMethod GenerateSetLocationsOffsetMethod()
1850CodeMemberMethod setLocationsOffsetMethod = new CodeMemberMethod();
1875CodeMemberMethod GenerateCacheHelper()
1877CodeMemberMethod cacheHelper = new CodeMemberMethod();
2186CodeMemberMethod validateMethod = new CodeMemberMethod();
System.Data (33)
fx\src\data\System\Data\CodeGen\datacache.cs (33)
291private static CodeMemberMethod CreateOnRowEventMethod(string eventName, string rowClassName) {
298CodeMemberMethod onRowEvent = MethodDecl(typeof(void), "OnRow" + eventName, MemberAttributes.Family | MemberAttributes.Override); {
422CodeMemberMethod addMethod = MethodDecl(typeof(void), "Add" + stRowClassName, MemberAttributes.Public | MemberAttributes.Final); {
442CodeMemberMethod addByColName = MethodDecl(stRowConcreateClassName, "Add" + stRowClassName, MemberAttributes.Public | MemberAttributes.Final); {
519CodeMemberMethod findBy = MethodDecl(stRowClassName, FixIdName(FindByName), MemberAttributes.Public | MemberAttributes.Final); {
536CodeMemberMethod getEnumerator = MethodDecl(typeof(System.Collections.IEnumerator), "GetEnumerator", MemberAttributes.Public | MemberAttributes.Final); {
547CodeMemberMethod clone = MethodDecl(typeof(DataTable), "Clone", MemberAttributes.Public | MemberAttributes.Override); {
557CodeMemberMethod createInstance = MethodDecl(typeof(DataTable), "CreateInstance", MemberAttributes.Family | MemberAttributes.Override); {
563CodeMemberMethod tableInitClass = MethodDecl(typeof(void), "InitClass", MemberAttributes.Private); {
566CodeMemberMethod tableInitVars = MethodDecl(typeof(void), "InitVars", MemberAttributes.Assembly | MemberAttributes.Final); {
706CodeMemberMethod newTableRow = MethodDecl(stRowConcreateClassName, "New" + stRowClassName, MemberAttributes.Public | MemberAttributes.Final); {
714CodeMemberMethod newRowFromBuilder = MethodDecl(typeof(DataRow), "NewRowFromBuilder", MemberAttributes.Family | MemberAttributes.Override); {
723CodeMemberMethod getRowType = MethodDecl(typeof(System.Type), "GetRowType", MemberAttributes.Family | MemberAttributes.Override); {
736CodeMemberMethod removeMethod = MethodDecl(typeof(void), "Remove" + stRowClassName, MemberAttributes.Public | MemberAttributes.Final); {
900CodeMemberMethod isNull = MethodDecl(typeof(System.Boolean), "Is" + rowColumnName + "Null", MemberAttributes.Public | MemberAttributes.Final); {
908CodeMemberMethod setNull = MethodDecl(typeof(void), "Set" + rowColumnName + "Null", MemberAttributes.Public | MemberAttributes.Final); {
924CodeMemberMethod childArray = Method(Type(rowConcreateClassName, 1), ChildPropertyName(relation), MemberAttributes.Public | MemberAttributes.Final); {
1110CodeMemberMethod clone = MethodDecl(typeof(DataSet), "Clone", MemberAttributes.Public | MemberAttributes.Override); {
1118CodeMemberMethod initDataSetVarsMethod = MethodDecl(typeof(void), "InitVars", MemberAttributes.Assembly | MemberAttributes.Final); {
1124CodeMemberMethod initClassMethod = MethodDecl(typeof(void), "InitClass", MemberAttributes.Private); {
1127CodeMemberMethod initVarsMethod = MethodDecl(typeof(void), "InitVars", MemberAttributes.Assembly | MemberAttributes.Final); {
1169CodeMemberMethod shouldSerializeTables = MethodDecl(typeof(System.Boolean), "ShouldSerializeTables", MemberAttributes.Family | MemberAttributes.Override); {
1177CodeMemberMethod shouldSerializeRelations = MethodDecl(typeof(System.Boolean), "ShouldSerializeRelations", MemberAttributes.Family | MemberAttributes.Override); {
1204CodeMemberMethod getTypedDataSetSchema = MethodDecl(typeof(XmlSchemaComplexType), "GetTypedDataSetSchema", MemberAttributes.Static | MemberAttributes.Public); {
1221CodeMemberMethod readXmlSerializable = MethodDecl(typeof(void), "ReadXmlSerializable", MemberAttributes.Family | MemberAttributes.Override); {
1253CodeMemberMethod getSchemaSerializable = MethodDecl(typeof(System.Xml.Schema.XmlSchema), "GetSchemaSerializable", MemberAttributes.Family | MemberAttributes.Override); {
1370CodeMemberMethod shouldSerializeTableProperty = MethodDecl(typeof(System.Boolean), "ShouldSerialize"+TableProperty, MemberAttributes.Private); {
1376CodeMemberMethod schemaChanged = MethodDecl(typeof(void), "SchemaChanged", MemberAttributes.Private); {
1391CodeMemberMethod initExpressionMethod = MethodDecl(typeof(void), "InitExpressions", MemberAttributes.Private); {
1504private static CodeMemberMethod Method(CodeTypeReference type, String name, MemberAttributes attributes) {
1505CodeMemberMethod method = new CodeMemberMethod(); {
1512private static CodeMemberMethod MethodDecl(Type type, String name, MemberAttributes attributes) {return Method(Type(type), name, attributes);}
1513private static CodeMemberMethod MethodDecl(String type, String name, MemberAttributes attributes) {return Method(Type(type), name, attributes);}
System.Data.Entity.Design (16)
System.Data.Services.Design (10)
System.Management (10)
System.Runtime.Serialization (13)
System.ServiceModel (73)
System\ServiceModel\Description\ClientClassGenerator.cs (43)
212CodeMemberMethod beginMethod = GenerateClientClassMethod(clientType, contractTypeRef, operationContext.BeginMethod, this.tryAddHelperMethod, declaringContractTypeRef);
213CodeMemberMethod endMethod = GenerateClientClassMethod(clientType, contractTypeRef, operationContext.EndMethod, this.tryAddHelperMethod, declaringContractTypeRef);
232static CodeMemberMethod GenerateClientClassMethod(CodeTypeDeclaration clientType, CodeTypeReference contractTypeRef, CodeMemberMethod method, bool addHelperMethod, CodeTypeReference declaringContractTypeRef)
234CodeMemberMethod methodImpl = GetImplementationOfMethod(contractTypeRef, method);
237CodeMemberMethod helperMethod = null;
262private static CodeMemberMethod GenerateHelperMethod(CodeTypeReference ifaceType, CodeMemberMethod method)
264CodeMemberMethod helperMethod = new CodeMemberMethod();
312private static CodeMethodReturnStatement GenerateParameters(CodeMemberMethod helperMethod, CodeTypeDeclaration codeTypeDeclaration, CodeExpression target, FieldDirection dir)
444CodeMemberMethod method = (CodeMemberMethod)methodObject;
456static void AddMethodImpl(CodeMemberMethod method)
469static CodeMemberMethod GetImplementationOfMethod(CodeTypeReference ifaceType, CodeMemberMethod method)
471CodeMemberMethod m = new CodeMemberMethod();
486string syncMethodName, CodeMemberMethod beginMethod, CodeMemberMethod endMethod)
492CodeMemberMethod beginOperationMethod = CreateBeginOperationMethod(context, clientType, syncMethodName, beginMethod);
495CodeMemberMethod endOperationMethod = CreateEndOperationMethod(context, clientType, syncMethodName, endMethod);
498CodeMemberMethod operationCompletedMethod = CreateOperationCompletedMethod(context, clientType, syncMethodName, operationCompletedEventArgsType, operationCompletedEvent);
500CodeMemberMethod eventAsyncMethod = CreateEventAsyncMethod(context, clientType, syncMethodName, beginMethod,
511string syncMethodName, CodeMemberMethod endMethod)
584static int GetAsyncResultParamIndex(CodeMemberMethod endMethod)
652static CodeMemberMethod CreateBeginOperationMethod(ServiceContractGenerationContext context, CodeTypeDeclaration clientType,
653string syncMethodName, CodeMemberMethod beginMethod)
655CodeMemberMethod onBeginOperationMethod = new CodeMemberMethod();
707static CodeMemberMethod CreateEndOperationMethod(ServiceContractGenerationContext context, CodeTypeDeclaration clientType, string syncMethodName, CodeMemberMethod endMethod)
709CodeMemberMethod onEndOperationMethod = new CodeMemberMethod();
782static CodeMemberMethod CreateOperationCompletedMethod(ServiceContractGenerationContext context, CodeTypeDeclaration clientType,
785CodeMemberMethod operationCompletedMethod = new CodeMemberMethod();
838static CodeMemberMethod CreateEventAsyncMethod(ServiceContractGenerationContext context, CodeTypeDeclaration clientType,
839string syncMethodName, CodeMemberMethod beginMethod,
840CodeMemberField beginOperationDelegate, CodeMemberMethod beginOperationMethod,
841CodeMemberField endOperationDelegate, CodeMemberMethod endOperationMethod,
842CodeMemberField operationCompletedDelegate, CodeMemberMethod operationCompletedMethod)
844CodeMemberMethod eventAsyncMethod = new CodeMemberMethod();
889static CodeMemberMethod CreateEventAsyncMethodOverload(CodeTypeDeclaration clientType, CodeMemberMethod eventAsyncMethod)
891CodeMemberMethod eventAsyncMethodOverload = new CodeMemberMethod();
920static CodeStatement CreateDelegateIfNotNull(CodeMemberField delegateField, CodeMemberMethod delegateMethod)
994static bool IsVoid(CodeMemberMethod method)
System\ServiceModel\Description\OperationContractGenerationContext.cs (18)
15readonly CodeMemberMethod syncMethod;
16readonly CodeMemberMethod beginMethod;
18readonly CodeMemberMethod endMethod;
22readonly CodeMemberMethod taskMethod;
42public OperationContractGenerationContext(ServiceContractGenerator serviceContractGenerator, ServiceContractGenerationContext contract, OperationDescription operation, CodeTypeDeclaration declaringType, CodeMemberMethod syncMethod, CodeMemberMethod beginMethod, CodeMemberMethod endMethod, CodeMemberMethod taskMethod)
60public OperationContractGenerationContext(ServiceContractGenerator serviceContractGenerator, ServiceContractGenerationContext contract, OperationDescription operation, CodeTypeDeclaration declaringType, CodeMemberMethod syncMethod, CodeMemberMethod beginMethod, CodeMemberMethod endMethod)
75public OperationContractGenerationContext(ServiceContractGenerator serviceContractGenerator, ServiceContractGenerationContext contract, OperationDescription operation, CodeTypeDeclaration declaringType, CodeMemberMethod syncMethod, CodeMemberMethod taskMethod)
87public OperationContractGenerationContext(ServiceContractGenerator serviceContractGenerator, ServiceContractGenerationContext contract, OperationDescription operation, CodeTypeDeclaration declaringType, CodeMemberMethod method)
114public CodeMemberMethod BeginMethod
119public CodeMemberMethod EndMethod
124public CodeMemberMethod TaskMethod
129public CodeMemberMethod SyncMethod
System.ServiceModel.Activation (1)
System.Web (54)
Configuration\BrowserCapabilitiesCodeGenerator.cs (18)
733CodeMemberMethod method = new CodeMemberMethod();
894CodeMemberMethod method = new CodeMemberMethod();
957CodeMemberMethod method = new CodeMemberMethod();
989CodeMemberMethod cmm = new CodeMemberMethod();
1085private void GenerateChildProcessInvokeExpression(string methodName, CodeMemberMethod cmm, bool generateTracker) {
1100CodeMemberMethod cmm= new CodeMemberMethod();
1119private void GenerateRegexWorkerIfNecessary(CodeMemberMethod cmm, ref bool regexWorkerGenerated) {
1133private void ReturnIfHeaderValueEmpty(CodeMemberMethod cmm, CodeVariableReferenceExpression varExpr) {
1148private void GenerateIdentificationCode(BrowserDefinition bd, CodeMemberMethod cmm, ref bool regexWorkerGenerated) {
1316private CodeVariableReferenceExpression GenerateVarReference(CodeMemberMethod cmm, Type varType, string varName) {
1323private void GenerateCapturesCode(BrowserDefinition bd, CodeMemberMethod cmm, ref bool regexWorkerGenerated) {
1394private void GenerateSetCapabilitiesCode(BrowserDefinition bd, CodeMemberMethod cmm, ref bool regexWorkerGenerated) {
1426internal void GenerateSetAdaptersCode(BrowserDefinition bd, CodeMemberMethod cmm) {
1452internal void AddComment(string comment, CodeMemberMethod cmm) {
1456internal CodeStatementCollection GenerateTrackedSingleProcessCall(CodeStatementCollection stmts, BrowserDefinition bd, CodeMemberMethod cmm) {
1460internal CodeStatementCollection GenerateTrackedSingleProcessCall(CodeStatementCollection stmts, BrowserDefinition bd, CodeMemberMethod cmm, string prefix) {
1478internal void GenerateSingleProcessCall(BrowserDefinition bd, CodeMemberMethod cmm) {
1484internal void GenerateSingleProcessCall(BrowserDefinition bd, CodeMemberMethod cmm, string prefix) {
System.Web.Extensions (3)
System.Web.Services (21)
System\Web\Services\Description\HttpProtocolImporter.cs (6)
127CodeMemberMethod GenerateMethod(HttpMethodInfo method) {
158CodeMemberMethod mainCodeMethod = WebCodeGenerator.AddMethod(this.CodeTypeDeclaration, method.Name, new CodeFlags[parameterTypeNames.Length], parameterTypeNames, parameterNames,
199CodeMemberMethod beginCodeMethod = WebCodeGenerator.AddMethod(this.CodeTypeDeclaration, "Begin" + method.Name, new CodeFlags[asyncParameterTypeNames.Length],
213CodeMemberMethod endCodeMethod = WebCodeGenerator.AddMethod(this.CodeTypeDeclaration, "End" + method.Name, new CodeFlags[1],
251CodeMemberMethod asyncCodeMethod = WebCodeGenerator.AddAsyncMethod(this.CodeTypeDeclaration, asyncName,
301protected override CodeMemberMethod GenerateMethod() {
System\Web\Services\Description\SoapProtocolImporter.cs (6)
630protected override CodeMemberMethod GenerateMethod() {
807CodeMemberMethod mainCodeMethod = WebCodeGenerator.AddMethod(this.CodeTypeDeclaration, methodName,
857CodeMemberMethod beginCodeMethod = WebCodeGenerator.AddMethod(this.CodeTypeDeclaration, "Begin" + uniqueMethodName,
888CodeMemberMethod codeMethod = WebCodeGenerator.AddMethod(this.CodeTypeDeclaration, "End" + uniqueMethodName,
927CodeMemberMethod asyncCodeMethod = WebCodeGenerator.AddAsyncMethod(this.CodeTypeDeclaration, asyncName,
966void WriteReturnMappings(CodeMemberMethod codeMethod, CodeExpression invoke, SoapParameters parameters, string resultsName) {
System\Web\Services\Description\WebCodeGenerator.cs (6)
155internal static CodeMemberMethod AddMethod(CodeTypeDeclaration codeClass, string methodName,
164internal static CodeMemberMethod AddMethod(CodeTypeDeclaration codeClass, string methodName,
168CodeMemberMethod method = new CodeMemberMethod();
287CodeMemberMethod asyncCompleted = WebCodeGenerator.AddMethod(codeClass, callbackName,
314internal static CodeMemberMethod AddAsyncMethod(CodeTypeDeclaration codeClass, string methodName,
317CodeMemberMethod asyncCodeMethod = WebCodeGenerator.AddMethod(codeClass, methodName,
System.Workflow.Activities (3)
System.Workflow.ComponentModel (24)
System.Xml (2)
XamlBuildTask (14)