66 writes to Method
PresentationBuildTasks (10)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (10)
2524cmieCD.Method = cmreCD; 2614cmieLoadContent.Method = cmreLoadContent; 2694cmieCI.Method = cmreCI; 2730cmieGPV.Method = cmreGPV; 2758cmieSPV.Method = cmreSPV; 2795cmieGetType.Method = cmreGetType; 2799cmieCD.Method = cmreCD; 2840cmieAEH.Method = cmreAEH; 3137cmieIT.Method = new CodeMethodReferenceExpression(cvreApp, INITIALIZE_COMPONENT); 3147cmieRun.Method = cmreRun;
System.Management (45)
WmiGenerator.cs (45)
3563cmie.Method = new CodeMethodReferenceExpression(new CodeVariableReferenceExpression(strClass),"GetInstances"); 5715cmie.Method = cmre; 6556cmie.Method = cmre; 6571cmie1.Method = cmre1; 6725cmie2.Method = cmre2; 6736cmie1.Method = cmre1; 6769cmie.Method = cmre; 6804cmie.Method = cmre; 6813cmie.Method = cmre; 6833cmie.Method = cmre; 6859cmie.Method = cmre; 6873cmie.Method = cmre; 6905cmie.Method = 6915cmie1.Method = new CodeMethodReferenceExpression(cmie,"PadLeft"); 6997cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int32 "),cpre1),"ToString"); 7000cmie1.Method = new CodeMethodReferenceExpression(cmie,"PadLeft"); 7014cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int32 "),cpre1),"ToString"); 7017cmie1.Method = new CodeMethodReferenceExpression(cmie,"PadLeft"); 7031cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int32 "),cpre1),"ToString"); 7034cmie1.Method = new CodeMethodReferenceExpression(cmie,"PadLeft"); 7094cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int64 "),new CodeVariableReferenceExpression(microsec)),"ToString"); 7113cmie.Method = new CodeMethodReferenceExpression(new CodeVariableReferenceExpression(strmicrosec),"Substring"); 7125cmie.Method = new CodeMethodReferenceExpression(new CodeVariableReferenceExpression(strmicrosec),"PadLeft"); 7177cmie1.Method = cmre; 7212cmie1.Method = cmre; 7225cmie1.Method = cmre; 7250cmie1.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int64 "),cboe2),"ToString"); 7253cmie2.Method = new CodeMethodReferenceExpression(cmie1,"PadLeft"); 7268cmie1.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int64 "),new CodeVariableReferenceExpression(OffsetMins)),"ToString"); 7272cmie2.Method = new CodeMethodReferenceExpression(new CodeVariableReferenceExpression("strTemp"),"Substring"); 7280cmie3.Method = new CodeMethodReferenceExpression(cmie2,"PadLeft"); 7295cmie1.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int32 "), 7301cmie2.Method = new CodeMethodReferenceExpression(cmie1,"PadLeft"); 7389cmie1.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int64 "), 7409cmie1.Method = new CodeMethodReferenceExpression(new CodeVariableReferenceExpression(strmicrosec),"Substring"); 7421cmie1.Method = new CodeMethodReferenceExpression(new CodeVariableReferenceExpression(strmicrosec),"PadLeft"); 7449cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference(strType), 7455cmie2.Method = new CodeMethodReferenceExpression(cmie,"PadLeft"); 7563cmie.Method = new CodeMethodReferenceExpression(new CodeVariableReferenceExpression(tsParam),"Substring"); 7611cmie.Method = new CodeMethodReferenceExpression(new CodeVariableReferenceExpression(tsParam),"Substring"); 7618cmie.Method = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression("System.Int64"),"Parse"); 7756cmie.Method = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression("System.TimeSpan"),"FromTicks"); 7762cmie.Method = new CodeMethodReferenceExpression(new CodeVariableReferenceExpression(timespan),"Add"); 7783cmie.Method = new CodeMethodReferenceExpression(new CodeVariableReferenceExpression(tsParam),"Substring"); 7790cmie.Method = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression("System.Int32"),"Parse");
System.Web (2)
Compilation\BaseTemplateCodeDomTreeGenerator.cs (1)
784invokeClearExpr.Method = refExpr;
Compilation\PageThemeCodeDomTreeGenerator.cs (1)
71cmie.Method = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression(typeof(PageTheme)), "CreateSkinKey");
System.Workflow.Activities (2)
Rules\Expressions.cs (1)
1682newMethod.Method = CloneMethodReference(invokeExpr.Method);
WebServiceReceive.cs (1)
831baseInvokeExpression.Method = new CodeMethodReferenceExpression(new CodeThisReferenceExpression(), "Invoke");
XamlBuildTask (7)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (7)
461Method = 478Method = 713Method = 781Method = new CodeMethodReferenceExpression() 791Method = new CodeMethodReferenceExpression() 1109new CodeMethodInvokeExpression { Method = new CodeMethodReferenceExpression { MethodName = "LoadAssemblies" } })); 1227Method =
170 references to Method
System (3)
compmod\microsoft\csharp\csharpcodeprovider.cs (1)
993GenerateMethodReferenceExpression(e.Method);
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
1324GenerateMethodReferenceExpression(e.Method);
compmod\system\codedom\compiler\CodeValidator.cs (1)
739ValidateMethodReferenceExpression(e.Method);
System.Management (81)
WmiGenerator.cs (81)
1092cmie.Method.MethodName = PrivateNamesUsed["ClassNameCheckFunc"].ToString(); 1379cmie.Method.TargetObject = new CodeTypeReferenceExpression("System.Convert"); 1381cmie.Method.MethodName = arrConvFuncName; 1394cmie.Method.MethodName = GetConversionFunction(prop.Type); 1395cmie.Method.TargetObject = new CodeTypeReferenceExpression("System.Convert"); 1474cmie.Method.TargetObject = new CodeTypeReferenceExpression("System.Convert"); 1476cmie.Method.MethodName = arrConvFuncName; 1573cmie.Method.TargetObject = new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()); 1574cmie.Method.MethodName = "Put"; 2129cmie.Method.TargetObject = new CodeCastExpression(new CodeTypeReference(((CodeTypeReference)arrKeyType[i]).BaseType + " "),new CodeVariableReferenceExpression("key"+arrKeys[i])); 2130cmie.Method.MethodName = "ToString"; 2156cmieInit.Method.MethodName = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2157cmieInit.Method.TargetObject = new CodeThisReferenceExpression(); 2165cmie.Method.TargetObject = new CodeTypeReferenceExpression(PrivateNamesUsed["GeneratedClassName"].ToString()); 2166cmie.Method.MethodName = PublicNamesUsed["ConstructPathFunction"].ToString(); 2198cmieInit.Method.MethodName = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2199cmieInit.Method.TargetObject = new CodeThisReferenceExpression(); 2223cmie.Method.TargetObject = new CodeTypeReferenceExpression(PrivateNamesUsed["GeneratedClassName"].ToString()); 2224cmie.Method.MethodName = PublicNamesUsed["ConstructPathFunction"].ToString(); 2255cmieInit.Method.MethodName = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2256cmieInit.Method.TargetObject = new CodeThisReferenceExpression(); 2284cmie.Method.TargetObject = new CodeTypeReferenceExpression(PrivateNamesUsed["GeneratedClassName"].ToString()); 2285cmie.Method.MethodName = PublicNamesUsed["ConstructPathFunction"].ToString(); 2323cmieInit.Method.MethodName = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2324cmieInit.Method.TargetObject = new CodeThisReferenceExpression(); 2353cmieInit.Method.MethodName = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2354cmieInit.Method.TargetObject = new CodeThisReferenceExpression(); 2381cmieInit.Method.MethodName = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2382cmieInit.Method.TargetObject = new CodeThisReferenceExpression(); 2406cmieInit.Method.MethodName = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2407cmieInit.Method.TargetObject = new CodeThisReferenceExpression(); 2411cmie.Method.TargetObject =new CodeTypeReferenceExpression(PrivateNamesUsed["GeneratedClassName"].ToString()); 2412cmie.Method.MethodName = PublicNamesUsed["ConstructPathFunction"].ToString(); 2443cmieInit.Method.MethodName = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2444cmieInit.Method.TargetObject = new CodeThisReferenceExpression(); 2448cmie.Method.TargetObject = new CodeTypeReferenceExpression(PrivateNamesUsed["GeneratedClassName"].ToString()); 2449cmie.Method.MethodName = PublicNamesUsed["ConstructPathFunction"].ToString(); 2482cmieInit.Method.MethodName = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2483cmieInit.Method.TargetObject = new CodeThisReferenceExpression(); 2488cmie.Method.TargetObject = new CodeTypeReferenceExpression(PrivateNamesUsed["GeneratedClassName"].ToString()); 2489cmie.Method.MethodName = PublicNamesUsed["ConstructPathFunction"].ToString(); 2540cmieInit.Method.MethodName = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2541cmieInit.Method.TargetObject = new CodeThisReferenceExpression(); 2586cmie.Method.MethodName = PrivateNamesUsed["ClassNameCheckFunc"].ToString(); 2651cmie.Method.MethodName = PrivateNamesUsed["ClassNameCheckFunc"].ToString(); 2739cmie.Method.MethodName = PrivateNamesUsed["ClassNameCheckFunc"].ToString(); 3152cmie2.Method.MethodName = GetConversionFunction(prop.Type); 3153cmie2.Method.TargetObject = new CodeTypeReferenceExpression("System.Convert"); 3189cmie2.Method.MethodName = GetConversionFunction(prop.Type); 3190cmie2.Method.TargetObject = new CodeTypeReferenceExpression("System.Convert"); 3294cmie.Method.MethodName = GetConversionFunction(cimRetType); 3295cmie.Method.TargetObject = new CodeTypeReferenceExpression("System.Convert"); 3301cmie.Method.MethodName = GetConversionFunction(cimRetType); 3302cmie.Method.TargetObject = new CodeTypeReferenceExpression("System.Convert"); 3340cmie.Method.MethodName = PublicNamesUsed["FilterFunction"].ToString(); 5069cmie.Method.TargetObject = new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()); 5070cmie.Method.MethodName = "Put"; 5103cmie.Method.TargetObject = new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()); 5104cmie.Method.MethodName = "Put"; 5653cmie1.Method.MethodName = "GetValue"; 5654cmie1.Method.TargetObject = new CodeVariableReferenceExpression(strDerivation); 5841cmie1.Method.MethodName = "GetValue"; 5844cmie1.Method.TargetObject = new CodeCastExpression(new CodeTypeReference("System.Array"),new CodePropertyReferenceExpression(prop,"Value")); 5848cmie1.Method.TargetObject = new CodeCastExpression(new CodeTypeReference("System.Array"), prop); 5853cmie2.Method.MethodName = "ToString"; 5854cmie2.Method.TargetObject = cmie1; 5963cmie1.Method.MethodName = "GetValue"; 5964cmie1.Method.TargetObject = new CodeCastExpression(new CodeTypeReference("System.Array"),varValue); 5996cmie.Method.MethodName = PrivateNamesUsed["ToDateTimeMethod"].ToString(); 6018cmie.Method.MethodName = PrivateNamesUsed["ToTimeSpanMethod"].ToString(); 6046cmie1.Method.MethodName = PrivateNamesUsed["ToDMTFDateTimeMethod"].ToString(); 6054cmie2.Method.MethodName = PrivateNamesUsed["ToDMTFTimeIntervalMethod"].ToString(); 6158cmie1.Method.MethodName = "GetValue"; 6159cmie1.Method.TargetObject = new CodeVariableReferenceExpression(strArray); 6163cmie2.Method.TargetObject = new CodeTypeReferenceExpression("System.Convert"); 6165cmie2.Method.MethodName = arrConvFuncName; 6354cmie1.Method.MethodName = "CreateInstance"; 6355cmie1.Method.TargetObject = new CodeVariableReferenceExpression(strTemp); 6390cmie1.Method.MethodName = "Delete"; 6391cmie1.Method.TargetObject = new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()); 7799cmieInit.Method.MethodName = PrivateNamesUsed["initVariable"].ToString();
System.Web (58)
Compilation\BaseCodeDomTreeGenerator.cs (6)
398invoke.Method.TargetObject = new CodeThisReferenceExpression(); 399invoke.Method.MethodName = InitMethodName; 704createObjectCall.Method.TargetObject = new CodePropertyReferenceExpression( 706createObjectCall.Method.MethodName = "CreateObject"; 714createObjectCall.Method.TargetObject = new CodePropertyReferenceExpression( 716createObjectCall.Method.MethodName = "CreateObjectFromClsid";
Compilation\BaseTemplateCodeDomTreeGenerator.cs (10)
74methodInvoke.Method.TargetObject = new CodeArgumentReferenceExpression(renderMethodParameterName); 75methodInvoke.Method.MethodName = "Write"; 113methodInvoke.Method.TargetObject = new CodeThisReferenceExpression(); 114methodInvoke.Method.MethodName = "WriteUTF8ResourceString"; 668call.Method.TargetObject = new CodeTypeReferenceExpression(typeof(System.Web.UI.StaticPartialCachingControl)); 669call.Method.MethodName = "BuildCachedControl"; 719methCallExpression.Method.TargetObject = new CodeThisReferenceExpression(); 720methCallExpression.Method.MethodName = "CreateResourceBasedLiteralControl"; 1551methodInvoke.Method.TargetObject = new CodeIndexerExpression(new CodePropertyReferenceExpression(new CodeArgumentReferenceExpression("parameterContainer"), 1556methodInvoke.Method.MethodName = "RenderControl";
Compilation\CodeDOMUtility.cs (4)
259methodInvoke.Method.TargetObject = new CodeCastExpression(typeof(IAttributeAccessor), target); 260methodInvoke.Method.MethodName = "SetAttribute"; 305invokeExpr.Method.TargetObject = BuildGlobalCodeTypeReferenceExpression(typeof(System.Convert)); 306invokeExpr.Method.MethodName = "ToString";
Compilation\DataBindingExpressionBuilder.cs (4)
41evalExpr.Method.TargetObject = new CodeThisReferenceExpression(); 42evalExpr.Method.MethodName = EvalMethodName; 53getDataItemExpr.Method.TargetObject = new CodePropertyReferenceExpression(new CodeThisReferenceExpression(), "Page"); 54getDataItemExpr.Method.MethodName = GetDataItemMethodName;
Compilation\PageCodeDomTreeGenerator.cs (18)
113createWrap.Method.TargetObject = new CodeThisReferenceExpression(); 114createWrap.Method.MethodName = "GetWrappedFileDependencies"; 386addDeps.Method.TargetObject = new CodeThisReferenceExpression(); 387addDeps.Method.MethodName = "AddWrappedFileDependencies"; 398call.Method.TargetObject = new CodeThisReferenceExpression(); 399call.Method.MethodName = "InitOutputCache"; 423invokeExpr.Method.TargetObject = new CodePropertyReferenceExpression( 425invokeExpr.Method.MethodName = "ValidateInput"; 466invokeExpr.Method.TargetObject = new CodeThisReferenceExpression(); 467invokeExpr.Method.MethodName = "AspCompatBeginProcessRequest"; 490call.Method.TargetObject = new CodeThisReferenceExpression(); 491call.Method.MethodName = "AspCompatEndProcessRequest"; 524invokeExpr.Method.TargetObject = new CodeThisReferenceExpression(); 525invokeExpr.Method.MethodName = "AsyncPageBeginProcessRequest"; 548call.Method.TargetObject = new CodeThisReferenceExpression(); 549call.Method.MethodName = "AsyncPageEndProcessRequest"; 598invokeExpr.Method.TargetObject = new CodeBaseReferenceExpression(); 599invokeExpr.Method.MethodName = "ProcessRequest";
Compilation\ProfileBuildProvider.cs (8)
200cmie.Method.TargetObject = new CodeThisReferenceExpression(); 201cmie.Method.MethodName = "GetPropertyValue"; 216setLine.Method.TargetObject = new CodeThisReferenceExpression(); 217setLine.Method.MethodName = "SetPropertyValue"; 250cmie.Method.TargetObject = new CodeThisReferenceExpression(); 251cmie.Method.MethodName = "GetProfileGroup"; 282cmie.Method.TargetObject = new CodeTypeReferenceExpression("ProfileBase"); 283cmie.Method.MethodName = "Create";
Compilation\ResourceExpressionBuilder.cs (4)
122expr.Method.TargetObject = new CodeThisReferenceExpression(); 124expr.Method.MethodName = "GetGlobalResourceObject"; 141expr.Method.TargetObject = new CodeThisReferenceExpression(); 143expr.Method.MethodName = "GetLocalResourceObject";
Compilation\TemplateControlCodeDomTreeGenerator.cs (4)
55methCallExpression.Method.TargetObject = new CodeThisReferenceExpression(); 56methCallExpression.Method.MethodName = "ReadStringResource"; 211call.Method.TargetObject = new CodeThisReferenceExpression(); 212call.Method.MethodName = "__BuildControlTree";
System.Workflow.Activities (28)
Rules\Expressions.cs (28)
1283if ((invokeExpr.Method == null) || (invokeExpr.Method.TargetObject == null)) 1285message = string.Format(CultureInfo.CurrentCulture, Messages.NullMethodTarget, invokeExpr.Method.MethodName); 1292if ((invokeExpr.Method.TypeArguments != null) && (invokeExpr.Method.TypeArguments.Count > 0)) 1306RuleExpressionInfo targetExprInfo = RuleExpressionWalker.Validate(validation, invokeExpr.Method.TargetObject, false); 1317message = string.Format(CultureInfo.CurrentCulture, Messages.NullMethodTarget, invokeExpr.Method.MethodName); 1334message = string.Format(CultureInfo.CurrentCulture, Messages.NullMethodParameter, i.ToString(CultureInfo.CurrentCulture), invokeExpr.Method.MethodName); 1369if (invokeExpr.Method.TargetObject is CodeTypeReferenceExpression) 1377methodInvokeInfo = validation.ResolveMethod(targetType, invokeExpr.Method.MethodName, bindingFlags, argExprs, out error); 1387methodInvokeInfo = validation.ResolveMethod(targetType, invokeExpr.Method.MethodName, bindingFlags, argExprs, out error); 1408message = string.Format(CultureInfo.CurrentCulture, Messages.CouldNotDetermineMemberType, invokeExpr.Method.MethodName); 1415if (!validation.ValidateMemberAccess(invokeExpr.Method.TargetObject, targetType, mi, invokeExpr.Method.MethodName, invokeExpr)) 1454CodeExpression targetObject = invokeExpr.Method.TargetObject; 1511object target = RuleExpressionWalker.Evaluate(execution, invokeExpr.Method.TargetObject).Value; 1526message = string.Format(CultureInfo.CurrentCulture, Messages.TargetEvaluatedNullMethod, invokeExpr.Method.MethodName); 1636if ((invokeExpr.Method == null) || (invokeExpr.Method.TargetObject == null)) 1638string message = string.Format(CultureInfo.CurrentCulture, Messages.NullMethodTarget, invokeExpr.Method.MethodName); 1645CodeExpression targetObject = invokeExpr.Method.TargetObject; 1649stringBuilder.Append(invokeExpr.Method.MethodName); 1661string message = string.Format(CultureInfo.CurrentCulture, Messages.NullMethodTypeParameter, i.ToString(CultureInfo.CurrentCulture), invokeExpr.Method.MethodName); 1682newMethod.Method = CloneMethodReference(invokeExpr.Method); 1704if (invokeExpr.Method.MethodName != newMethod.Method.MethodName) 1706if (!RuleExpressionWalker.Match(invokeExpr.Method.TargetObject, newMethod.Method.TargetObject))