22 writes to cis
System.Management (22)
124 references to cis
System.Management (124)
WmiGenerator.cs (124)
1075cis.Condition = cboe;
1077cis.TrueStatements.Add(new CodeMethodReturnStatement(cpre));
1078cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
1079cmp.GetStatements.Add(cis);
1088cis.Condition = cboe;
1108cis.TrueStatements.Add(cis1);
1111cis.TrueStatements.Add(new CodeAssignStatement(cpre,
1114cmp.SetStatements.Add(cis);
1338cis.Condition = new CodeBinaryOperatorExpression(cie,
1343cis.TrueStatements.Add(new CodeMethodReturnStatement (new CodePrimitiveExpression(true) ));
1344cis.FalseStatements.Add(new CodeMethodReturnStatement (new CodePrimitiveExpression(false) ));
1345cmp2.GetStatements.Add (cis);
1361cis.Condition = new CodeBinaryOperatorExpression(cie,
1369cis.TrueStatements.Add(new CodeMethodReturnStatement (new CodePrimitiveExpression(null)));
1382cis.TrueStatements.Add(new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cmie )));
1399cis.TrueStatements.Add(new CodeMethodReturnStatement(
1406cis.TrueStatements.Add(new CodeMethodReturnStatement (cmie));
1409cmp.GetStatements.Add (cis);
1592cis.Condition = cboe2;
1594cis.TrueStatements.Add(new CodeExpressionStatement(cmie));
1596cmp.SetStatements.Add(cis);
1599cmm2.Statements.Add(cis);
2593cis.Condition = cboe;
2595cis.TrueStatements.Add(new CodeAssignStatement(
2602cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["SystemPropertiesObject"].ToString()),coce));
2603cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()),
2609cis.FalseStatements.Add(new CodeThrowExceptionStatement(coce));
2612cctor.Statements.Add(cis);
2661cis.Condition = cboe;
2663cis.TrueStatements.Add(new CodeAssignStatement(
2670cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["SystemPropertiesObject"].ToString()),coce));
2671cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()),
2674cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()),
2680cis.FalseStatements.Add(new CodeThrowExceptionStatement(coce));
2683cctor.Statements.Add(cis);
2733cis.Condition = new CodeBinaryOperatorExpression(new CodeVariableReferenceExpression(strPathObject),
2756cis.TrueStatements.Add(cis1);
2757cmmInit.Statements.Add(cis);
2900cis.Condition = cboe;
2905cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()),
2915cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()),strPath,cocePath));
2926cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()),strClassObj,coce1));
2941cis.TrueStatements.Add(new CodeVariableDeclarationStatement("System.Boolean",
2944cis.TrueStatements.Add(new CodeAssignStatement(cprePriveleges, new CodePrimitiveExpression(true)));
2965cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strInParams),cmie));
3007AddPropertySet(cie,prop.IsArray,cis.TrueStatements,PublicNamesUsed["PathClass"].ToString(),new CodeVariableReferenceExpression(cpde.Name));
3016AddPropertySet(cie,prop.IsArray,cis.TrueStatements,"System.TimeSpan",new CodeVariableReferenceExpression(cpde.Name));
3020AddPropertySet(cie,prop.IsArray,cis.TrueStatements,"System.DateTime",new CodeVariableReferenceExpression(cpde.Name));
3029cis.TrueStatements.Add(new CodeAssignStatement(cie,new CodeCastExpression(new CodeTypeReference(cpde.Type.BaseType + " "),
3034cis.TrueStatements.Add(new CodeAssignStatement(cie,new CodeCastExpression(cpde.Type,new CodeVariableReferenceExpression(cpde.Name))));
3067cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()),strOutParams,cmie));
3124GenerateCodeForRefAndDateTimeTypes(cie,prop.IsArray,cis.TrueStatements,PublicNamesUsed["PathClass"].ToString(),new CodeVariableReferenceExpression(prop.Name),true);
3133GenerateCodeForRefAndDateTimeTypes(cie,prop.IsArray,cis.TrueStatements,"System.TimeSpan",new CodeVariableReferenceExpression(prop.Name),true);
3137GenerateCodeForRefAndDateTimeTypes(cie,prop.IsArray,cis.TrueStatements,"System.DateTime",new CodeVariableReferenceExpression(prop.Name),true);
3144cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),
3155cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),cmie2));
3174cis.FalseStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),coce));
3178cis.FalseStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),
3191cis.FalseStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),cmie2));
3195cis.FalseStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),
3218cis.TrueStatements.Add(cmis);
3227cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(inoutParams[i].ToString()),
3236cis.TrueStatements.Add(new CodeAssignStatement(cprePriveleges, new CodeVariableReferenceExpression(PrivateNamesUsed["Privileges"].ToString())));
3253GenerateCodeForRefAndDateTimeTypes(cie,isRetArray,cis.TrueStatements,PublicNamesUsed["PathClass"].ToString(),new CodeVariableReferenceExpression("retVar"),true);
3254cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar")));
3255cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
3265GenerateCodeForRefAndDateTimeTypes(cie,isRetArray,cis.TrueStatements,"System.DateTime",new CodeVariableReferenceExpression("retVar"),true);
3266cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar")));
3267cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar")));
3284GenerateCodeForRefAndDateTimeTypes(cie,isRetArray,cis.TrueStatements,"System.TimeSpan",new CodeVariableReferenceExpression("retVar"),true);
3285cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar")));
3286cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar")));
3297cis.TrueStatements.Add(new CodeMethodReturnStatement(cmie));
3304cis.FalseStatements.Add(new CodeMethodReturnStatement(cmie));
3309cis.TrueStatements.Add(new CodeMethodReturnStatement(
3312cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
3316cmm.Statements.Add(cis);
3491cis.Condition = cboe;
3513cis.TrueStatements.Add(cis1);
3514cmm.Statements.Add(cis);
3545cis.Condition = cboe;
3549cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["EnumParam"].ToString()),
3551cis.TrueStatements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(
3556cmm.Statements.Add(cis);
3671cis.Condition = cboe;
3694cis.TrueStatements.Add(cis1);
3695cmm.Statements.Add(cis);
4132cis.Condition = cboe1;
4152cis.TrueStatements.Add(new CodeConditionStatement(cboe2,new CodeMethodReturnStatement(new CodeVariableReferenceExpression("value"))));
4180cis.TrueStatements.Add(new CodeConditionStatement(cboe7,new CodeMethodReturnStatement(new CodeSnippetExpression(" \"NULL_ENUM_VALUE\" "))));
4182cis.TrueStatements.Add(returnStatement);
4185cmm.Statements.Add(cis);
4207cis.Condition = cboe3;
4245cis.TrueStatements.Add(new CodeConditionStatement(cboe7,new CodeMethodReturnStatement(new CodePrimitiveExpression(""))));
4247cis.TrueStatements.Add(returnStatement);
4250cmm.Statements.Add(cis);
4277cis.Condition = cboe3;
4278cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression("")));
4280cmm.Statements.Add(cis);
5066cis.Condition = cboe;
5072cis.TrueStatements.Add(new CodeExpressionStatement(cmie));
5073cmm.Statements.Add(cis);
5100cis.Condition = cboe;
5107cis.TrueStatements.Add(new CodeExpressionStatement(cmie));
5108cmm.Statements.Add(cis);
5448cis.Condition = cboe;
5459cis.TrueStatements.Add(cis1);
5490cmp.GetStatements.Add(cis);
5546cis.Condition = cboe2;
5548cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
5559cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodeMethodInvokeExpression(cmre,coce)));
5560cmm.Statements.Add(cis);
5619cis.Condition = cboe2;
5621cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
5628cis.FalseStatements.Add(new CodeVariableDeclarationStatement("System.Array",strDerivation,cs));
5681cis.FalseStatements.Add(cis1);
5683cmm.Statements.Add(cis);
6100cis.Condition = cboe;
6104cis.TrueStatements.Add(new CodeMethodReturnStatement(Value));
6105cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
6107cmp.GetStatements.Add(cis);
6114cis.Condition = cboe;
6116cis.TrueStatements.Add(new CodeAssignStatement(Value,
6119cmp.SetStatements.Add(cis);