60 writes to cmie
System.Management (60)
WmiGenerator.cs (60)
1091cmie = new CodeMethodInvokeExpression();
1378cmie = new CodeMethodInvokeExpression();
1392cmie = new CodeMethodInvokeExpression();
1473cmie = new CodeMethodInvokeExpression();
1572cmie = new CodeMethodInvokeExpression();
2126cmie = new CodeMethodInvokeExpression();
2164cmie = new CodeMethodInvokeExpression();
2222cmie = new CodeMethodInvokeExpression();
2283cmie = new CodeMethodInvokeExpression();
2410cmie = new CodeMethodInvokeExpression();
2447cmie = new CodeMethodInvokeExpression();
2487cmie = new CodeMethodInvokeExpression();
2585cmie = new CodeMethodInvokeExpression();
2650cmie = new CodeMethodInvokeExpression();
2738cmie = new CodeMethodInvokeExpression();
2961cmie = new CodeMethodInvokeExpression(
3060cmie = new CodeMethodInvokeExpression(
3208cmie = new CodeMethodInvokeExpression(
3292cmie = new CodeMethodInvokeExpression();
3299cmie = new CodeMethodInvokeExpression();
3338cmie = new CodeMethodInvokeExpression();
3369cmie = new CodeMethodInvokeExpression(
3400cmie = new CodeMethodInvokeExpression(
3433cmie = new CodeMethodInvokeExpression(
3562cmie = new CodeMethodInvokeExpression();
3591cmie = new CodeMethodInvokeExpression(
3623cmie = new CodeMethodInvokeExpression(
3836cmie = new CodeMethodInvokeExpression(new CodeTypeReferenceExpression(TypeDescriptorClass),"GetConverter");
3862cmie = new CodeMethodInvokeExpression(new CodeVariableReferenceExpression(baseTypeMemberVariable),"CanConvertFrom");
3886cmie = new CodeMethodInvokeExpression(new CodeVariableReferenceExpression(baseTypeMemberVariable),"CanConvertTo");
3911cmie = new CodeMethodInvokeExpression(new CodeVariableReferenceExpression(baseTypeMemberVariable),"ConvertFrom");
3936cmie = new CodeMethodInvokeExpression(new CodeVariableReferenceExpression(baseTypeMemberVariable),"CreateInstance");
3958cmie = new CodeMethodInvokeExpression(new CodeVariableReferenceExpression(baseTypeMemberVariable),"GetCreateInstanceSupported");
3981cmie = new CodeMethodInvokeExpression(new CodeVariableReferenceExpression(baseTypeMemberVariable),"GetProperties");
4002cmie = new CodeMethodInvokeExpression(new CodeVariableReferenceExpression(baseTypeMemberVariable),"GetPropertiesSupported");
4021cmie = new CodeMethodInvokeExpression(new CodeVariableReferenceExpression(baseTypeMemberVariable),"GetStandardValues");
4040cmie = new CodeMethodInvokeExpression(new CodeVariableReferenceExpression(baseTypeMemberVariable),"GetStandardValuesExclusive");
4059cmie = new CodeMethodInvokeExpression(new CodeVariableReferenceExpression(baseTypeMemberVariable),"GetStandardValuesSupported");
4115cmie = new CodeMethodInvokeExpression(new CodeVariableReferenceExpression(baseTypeMemberVariable),"ConvertTo");
4168cmie = new CodeMethodInvokeExpression(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(contextObject),"PropertyDescriptor"),"ShouldSerializeValue");
4233cmie = new CodeMethodInvokeExpression(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(contextObject),"PropertyDescriptor"),"ShouldSerializeValue");
4265cmie = new CodeMethodInvokeExpression(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(contextObject),"PropertyDescriptor"),"ShouldSerializeValue");
4411cmie = new CodeMethodInvokeExpression(
4436cmie = new CodeMethodInvokeExpression(
4595cmie = new CodeMethodInvokeExpression(
4613cmie = new CodeMethodInvokeExpression(
5068cmie = new CodeMethodInvokeExpression();
5102cmie = new CodeMethodInvokeExpression();
5524cmie = new CodeMethodInvokeExpression(
5597cmie = new CodeMethodInvokeExpression(
5714cmie = new CodeMethodInvokeExpression();
5993cmie = new CodeMethodInvokeExpression();
6015cmie = new CodeMethodInvokeExpression();
6904cmie = new CodeMethodInvokeExpression();
6996cmie = new CodeMethodInvokeExpression();
7013cmie = new CodeMethodInvokeExpression();
7030cmie = new CodeMethodInvokeExpression();
7093cmie = new CodeMethodInvokeExpression();
7112cmie = new CodeMethodInvokeExpression();
7124cmie = new CodeMethodInvokeExpression();
184 references to cmie
System.Management (184)
WmiGenerator.cs (184)
1092cmie.Method.MethodName = PrivateNamesUsed["ClassNameCheckFunc"].ToString();
1095cmie.Parameters.Add(new CodePrimitiveExpression(null));
1096cmie.Parameters.Add(new CodeVariableReferenceExpression("value"));
1097cmie.Parameters.Add(new CodePrimitiveExpression(null));
1100cboe1.Left = cmie;
1379cmie.Method.TargetObject = new CodeTypeReferenceExpression("System.Convert");
1380cmie.Parameters.Add(new CodePrimitiveExpression(prop.NullEnumValue));
1381cmie.Method.MethodName = arrConvFuncName;
1382cis.TrueStatements.Add(new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cmie )));
1393cmie.Parameters.Add(new CodePrimitiveExpression(prop.NullEnumValue));
1394cmie.Method.MethodName = GetConversionFunction(prop.Type);
1395cmie.Method.TargetObject = new CodeTypeReferenceExpression("System.Convert");
1398CodeExpression [] cInit = {cmie };
1406cis.TrueStatements.Add(new CodeMethodReturnStatement (cmie));
1474cmie.Method.TargetObject = new CodeTypeReferenceExpression("System.Convert");
1475cmie.Parameters.Add(cie);
1476cmie.Method.MethodName = arrConvFuncName;
1477cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cmie )));
1573cmie.Method.TargetObject = new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString());
1574cmie.Method.MethodName = "Put";
1594cis.TrueStatements.Add(new CodeExpressionStatement(cmie));
2129cmie.Method.TargetObject = new CodeCastExpression(new CodeTypeReference(((CodeTypeReference)arrKeyType[i]).BaseType + " "),new CodeVariableReferenceExpression("key"+arrKeys[i]));
2130cmie.Method.MethodName = "ToString";
2132CodeMethodInvokeExpression cmie1 = GenerateConcatStrings(new CodePrimitiveExpression(((i==0)?("."+arrKeys[i]+"="):(","+arrKeys[i]+"="))),cmie);
2165cmie.Method.TargetObject = new CodeTypeReferenceExpression(PrivateNamesUsed["GeneratedClassName"].ToString());
2166cmie.Method.MethodName = PublicNamesUsed["ConstructPathFunction"].ToString();
2170coce.Parameters.Add(cmie);
2223cmie.Method.TargetObject = new CodeTypeReferenceExpression(PrivateNamesUsed["GeneratedClassName"].ToString());
2224cmie.Method.MethodName = PublicNamesUsed["ConstructPathFunction"].ToString();
2228cmie.Parameters.Add(new CodeVariableReferenceExpression("key"+arrKeys[i]));
2233coce.Parameters.Add(cmie);
2284cmie.Method.TargetObject = new CodeTypeReferenceExpression(PrivateNamesUsed["GeneratedClassName"].ToString());
2285cmie.Method.MethodName = PublicNamesUsed["ConstructPathFunction"].ToString();
2289cmie.Parameters.Add(new CodeVariableReferenceExpression("key"+arrKeys[i]));
2294coce.Parameters.Add(cmie);
2411cmie.Method.TargetObject =new CodeTypeReferenceExpression(PrivateNamesUsed["GeneratedClassName"].ToString());
2412cmie.Method.MethodName = PublicNamesUsed["ConstructPathFunction"].ToString();
2416coce.Parameters.Add(cmie);
2448cmie.Method.TargetObject = new CodeTypeReferenceExpression(PrivateNamesUsed["GeneratedClassName"].ToString());
2449cmie.Method.MethodName = PublicNamesUsed["ConstructPathFunction"].ToString();
2453coce.Parameters.Add(cmie);
2488cmie.Method.TargetObject = new CodeTypeReferenceExpression(PrivateNamesUsed["GeneratedClassName"].ToString());
2489cmie.Method.MethodName = PublicNamesUsed["ConstructPathFunction"].ToString();
2493coce.Parameters.Add(cmie);
2586cmie.Method.MethodName = PrivateNamesUsed["ClassNameCheckFunc"].ToString();
2587cmie.Parameters.Add(new CodeVariableReferenceExpression(strLateBoundObject));
2590cboe.Left = cmie;
2651cmie.Method.MethodName = PrivateNamesUsed["ClassNameCheckFunc"].ToString();
2654cmie.Parameters.Add(new CodeVariableReferenceExpression(strLateBoundObject));
2657cboe.Left = cmie;
2739cmie.Method.MethodName = PrivateNamesUsed["ClassNameCheckFunc"].ToString();
2742cmie.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()));
2743cmie.Parameters.Add(new CodeVariableReferenceExpression(strPathObject));
2744cmie.Parameters.Add(new CodeVariableReferenceExpression(strGetOptions));
2747cboe.Left = cmie;
2965cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strInParams),cmie));
3064cmie.Parameters.Add(new CodePrimitiveExpression(meth.Name));
3065cmie.Parameters.Add(new CodeVariableReferenceExpression(strInParams));
3066cmie.Parameters.Add(new CodePrimitiveExpression(null));
3067cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()),strOutParams,cmie));
3213cmie.Parameters.Add(new CodePrimitiveExpression(meth.Name));
3214cmie.Parameters.Add(new CodeVariableReferenceExpression(strInParams));
3215cmie.Parameters.Add(new CodePrimitiveExpression(null)); // Bug NO: 108605
3217cmis = new CodeExpressionStatement(cmie);
3293cmie.Parameters.Add(new CodePropertyReferenceExpression(cie,"Value"));
3294cmie.Method.MethodName = GetConversionFunction(cimRetType);
3295cmie.Method.TargetObject = new CodeTypeReferenceExpression("System.Convert");
3297cis.TrueStatements.Add(new CodeMethodReturnStatement(cmie));
3300cmie.Parameters.Add(new CodePrimitiveExpression(0));
3301cmie.Method.MethodName = GetConversionFunction(cimRetType);
3302cmie.Method.TargetObject = new CodeTypeReferenceExpression("System.Convert");
3304cis.FalseStatements.Add(new CodeMethodReturnStatement(cmie));
3340cmie.Method.MethodName = PublicNamesUsed["FilterFunction"].ToString();
3341cmie.Parameters.Add(new CodePrimitiveExpression(null));
3342cmie.Parameters.Add(new CodePrimitiveExpression(null));
3343cmie.Parameters.Add(new CodePrimitiveExpression(null));
3345cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3374cmie.Parameters.Add(new CodePrimitiveExpression(null));
3375cmie.Parameters.Add(new CodeVariableReferenceExpression(strCondition));
3376cmie.Parameters.Add(new CodePrimitiveExpression(null));
3377cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3405cmie.Parameters.Add(new CodePrimitiveExpression(null));
3406cmie.Parameters.Add(new CodePrimitiveExpression(null));
3407cmie.Parameters.Add(new CodeVariableReferenceExpression(strSelectedProperties));
3408cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3438cmie.Parameters.Add(new CodePrimitiveExpression(null));
3439cmie.Parameters.Add(new CodeVariableReferenceExpression(strCondition));
3440cmie.Parameters.Add(new CodeVariableReferenceExpression(strSelectedProperties));
3441cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3563cmie.Method = new CodeMethodReferenceExpression(new CodeVariableReferenceExpression(strClass),"GetInstances");
3564cmie.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["EnumParam"].ToString()));
3565coce.Parameters.Add(cmie);
3596cmie.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()));
3597cmie.Parameters.Add(new CodeVariableReferenceExpression(strCondition));
3598cmie.Parameters.Add(new CodePrimitiveExpression(null));
3599cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3628cmie.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()));
3629cmie.Parameters.Add(new CodePrimitiveExpression(null));
3630cmie.Parameters.Add(new CodeVariableReferenceExpression(strSelectedProperties));
3631cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3838cmie.Parameters.Add(new CodeVariableReferenceExpression(baseTypeParam));
3840cctor.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(baseTypeMemberVariable),cmie));
3863cmie.Parameters.Add(new CodeVariableReferenceExpression(contextObject));
3864cmie.Parameters.Add(new CodeVariableReferenceExpression(srcType));
3866cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3887cmie.Parameters.Add(new CodeVariableReferenceExpression(contextObject));
3888cmie.Parameters.Add(new CodeVariableReferenceExpression(TypeDstObject));
3890cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3912cmie.Parameters.Add(new CodeVariableReferenceExpression(contextObject));
3913cmie.Parameters.Add(new CodeVariableReferenceExpression(CultureInfoVar));
3914cmie.Parameters.Add(new CodeVariableReferenceExpression(ValueVar));
3916cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3937cmie.Parameters.Add(new CodeVariableReferenceExpression(contextObject));
3938cmie.Parameters.Add(new CodeVariableReferenceExpression(DictVar));
3940cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3959cmie.Parameters.Add(new CodeVariableReferenceExpression(contextObject));
3961cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3982cmie.Parameters.Add(new CodeVariableReferenceExpression(contextObject));
3983cmie.Parameters.Add(new CodeVariableReferenceExpression(ValueVar));
3984cmie.Parameters.Add(new CodeVariableReferenceExpression(AttributeVar));
3986cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
4003cmie.Parameters.Add(new CodeVariableReferenceExpression(contextObject));
4005cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
4022cmie.Parameters.Add(new CodeVariableReferenceExpression(contextObject));
4024cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
4041cmie.Parameters.Add(new CodeVariableReferenceExpression(contextObject));
4043cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
4060cmie.Parameters.Add(new CodeVariableReferenceExpression(contextObject));
4062cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
4116cmie.Parameters.Add(new CodeVariableReferenceExpression(contextObject));
4117cmie.Parameters.Add(new CodeVariableReferenceExpression(CultureInfoVar));
4118cmie.Parameters.Add(new CodeVariableReferenceExpression(ValueVar));
4119cmie.Parameters.Add(new CodeVariableReferenceExpression(TypeDstObject));
4120CodeMethodReturnStatement returnStatement = new CodeMethodReturnStatement(cmie);
4169cmie.Parameters.Add(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(contextObject),"Instance"));
4171CodeBinaryOperatorExpression cboe6 = new CodeBinaryOperatorExpression(cmie,
4234cmie.Parameters.Add(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(contextObject),"Instance"));
4236cboe6 = new CodeBinaryOperatorExpression(cmie,
4266cmie.Parameters.Add(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(contextObject),"Instance"));
4268cboe2 = new CodeBinaryOperatorExpression(cmie,
4416cmie.Parameters.Add(new CodeVariableReferenceExpression(strArray));
4417cmie.Parameters.Add(new CodeVariableReferenceExpression(strIndex));
4418cmm.Statements.Add(new CodeExpressionStatement(cmie));
4452cmie.Parameters.Add(coce);
4453cmie.Parameters.Add(new CodeVariableReferenceExpression(strnCtr));
4454cfls.Statements.Add(new CodeExpressionStatement(cmie));
4600cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
4617cmm.Statements.Add(new CodeExpressionStatement (cmie));
5069cmie.Method.TargetObject = new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString());
5070cmie.Method.MethodName = "Put";
5072cis.TrueStatements.Add(new CodeExpressionStatement(cmie));
5103cmie.Method.TargetObject = new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString());
5104cmie.Method.MethodName = "Put";
5105cmie.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["putOptions"].ToString()));
5107cis.TrueStatements.Add(new CodeExpressionStatement(cmie));
5531cboe.Left = cmie;
5604cboe.Left = cmie;
5715cmie.Method = cmre;
5719cis1.TrueStatements.Add (new CodeMethodReturnStatement(CreateObjectForProperty(strType,cmie)));
5727cis1.TrueStatements.Add (new CodeAssignStatement(varToAssign ,CreateObjectForProperty(strType,cmie)));
5995cmie.Parameters.Add(param);
5996cmie.Method.MethodName = PrivateNamesUsed["ToDateTimeMethod"].ToString();
5997return cmie;
6017cmie.Parameters.Add(param);
6018cmie.Method.MethodName = PrivateNamesUsed["ToTimeSpanMethod"].ToString();
6019return cmie;
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");
7095cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),strmicrosec,cmie));
7113cmie.Method = new CodeMethodReferenceExpression(new CodeVariableReferenceExpression(strmicrosec),"Substring");
7114cmie.Parameters.Add(new CodePrimitiveExpression(0));
7115cmie.Parameters.Add(new CodePrimitiveExpression(6));
7117cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strmicrosec),cmie));
7125cmie.Method = new CodeMethodReferenceExpression(new CodeVariableReferenceExpression(strmicrosec),"PadLeft");
7126cmie.Parameters.Add(new CodePrimitiveExpression(6));
7127cmie.Parameters.Add(new CodePrimitiveExpression('0'));
7130cmie2 = GenerateConcatStrings(new CodeVariableReferenceExpression(dmtfTimeSpan),cmie);