11 writes to cmp
System.Management (11)
System\Management\WMIGenerator.cs (11)
931
cmp
= new CodeMemberProperty();
968
cmp
= new CodeMemberProperty();
1012
cmp
= new CodeMemberProperty();
1114
cmp
= new CodeMemberProperty();
1189
cmp
= new CodeMemberProperty();
4280
cmp
= new CodeMemberProperty();
4297
cmp
= new CodeMemberProperty();
4313
cmp
= new CodeMemberProperty();
4461
cmp
= new CodeMemberProperty();
5317
cmp
= new CodeMemberProperty();
5957
cmp
= new CodeMemberProperty();
120 references to cmp
System.Management (120)
System\Management\WMIGenerator.cs (120)
932
cmp
.Name = propName;
933
cmp
.Attributes = MemberAttributes.Public | MemberAttributes.Final;
934
cmp
.Type = new CodeTypeReference(propType);
941
cmp
.CustomAttributes = new CodeAttributeDeclarationCollection();
942
cmp
.CustomAttributes.Add(cad);
949
cmp
.CustomAttributes.Add(cad);
953
cmp
.GetStatements.Add(new CodeMethodReturnStatement(new CodeSnippetExpression(propValue)));
957
cmp
.GetStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(propValue)));
959
cc.Members.Add(
cmp
);
962
cmp
.Comments.Add(new CodeCommentStatement(Comment));
969
cmp
.Name = propName;
970
cmp
.Attributes = MemberAttributes.Public | MemberAttributes.Final;
971
cmp
.Type = new CodeTypeReference(propType);
975
cmp
.Attributes |= MemberAttributes.Static;
983
cmp
.CustomAttributes = new CodeAttributeDeclarationCollection();
984
cmp
.CustomAttributes.Add(cad);
995
cmp
.CustomAttributes.Add(cad);
998
cmp
.GetStatements.Add(new CodeMethodReturnStatement(Value));
1000
cmp
.SetStatements.Add(new CodeAssignStatement(Value,
1002
cc.Members.Add(
cmp
);
1006
cmp
.Comments.Add(new CodeCommentStatement(Comment));
1013
cmp
.Name = PublicNamesUsed["PathProperty"].ToString();
1014
cmp
.Attributes = MemberAttributes.Public | MemberAttributes.Final;
1015
cmp
.Type = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString());
1022
cmp
.CustomAttributes = new CodeAttributeDeclarationCollection();
1023
cmp
.CustomAttributes.Add(cad);
1038
cmp
.GetStatements.Add(cis);
1073
cmp
.SetStatements.Add(cis);
1074
cc.Members.Add(
cmp
);
1076
cmp
.Comments.Add(new CodeCommentStatement(SR.CommentManagementPath));
1121
cmp
.CustomAttributes = new CodeAttributeDeclarationCollection();
1122
cmp
.CustomAttributes.Add(cad);
1143
cmp
.Name = (new string(strPropName)).ToUpperInvariant();
1144
cmp
.Attributes = MemberAttributes.Public | MemberAttributes.Final;
1145
cmp
.Type = ConvertCIMType(prop.Type, prop.IsArray);
1151
cmp
.GetStatements.Add(new CodeMethodReturnStatement(new CodeCastExpression(
cmp
.Type, cie)));
1152
SysPropsClass.Members.Add(
cmp
);
1190
cmp
.Name = PublicProperties[prop.Name].ToString();
1191
cmp
.Attributes = MemberAttributes.Public | MemberAttributes.Final;
1192
cmp
.Type = ConvertCIMType(prop.Type, prop.IsArray);
1196
CodeTypeReference dateType =
cmp
.Type;
1199
cmp
.Type = dateType;
1205
if ((
cmp
.Type.ArrayRank == 0 &&
cmp
.Type.BaseType == new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()).BaseType) ||
1206
cmp
.Type.ArrayRank > 0 &&
cmp
.Type.ArrayElementType.BaseType == new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()).BaseType)
1225
cmp
.CustomAttributes = new CodeAttributeDeclarationCollection();
1226
cmp
.CustomAttributes.Add(cad);
1242
cmp
.CustomAttributes.Add(cad);
1267
cmp
.CustomAttributes.Add(cad);
1313
cmp
.CustomAttributes.Add(cad);
1341
cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodeCastExpression(
cmp
.Type, cmie)));
1359
new CodeArrayCreateExpression(
cmp
.Type, cInit)));
1368
cmp
.GetStatements.Add(cis);
1405
GenerateCodeForRefAndDateTimeTypes(cie, prop.IsArray,
cmp
.GetStatements, PublicNamesUsed["PathClass"].ToString(), null, false);
1415
GenerateCodeForRefAndDateTimeTypes(cie, prop.IsArray,
cmp
.GetStatements, "System.TimeSpan", null, false);
1419
GenerateCodeForRefAndDateTimeTypes(cie, prop.IsArray,
cmp
.GetStatements, "System.DateTime", null, false);
1428
AddGetStatementsForEnumArray(cie,
cmp
);
1436
cmp
.GetStatements.Add(new CodeMethodReturnStatement(new CodeCastExpression(
cmp
.Type, cmie)));
1441
cmp
.GetStatements.Add(new CodeMethodReturnStatement(new CodeCastExpression(
cmp
.Type, cie)));
1465
AddPropertySet(cie, prop.IsArray,
cmp
.SetStatements, PublicNamesUsed["PathClass"].ToString(), null);
1475
AddPropertySet(cie, prop.IsArray,
cmp
.SetStatements, "System.TimeSpan", null);
1479
AddPropertySet(cie, prop.IsArray,
cmp
.SetStatements, "System.DateTime", null);
1516
cmp
.SetStatements.Add(ccs);
1521
cmp
.SetStatements.Add(new CodeAssignStatement(cie, new CodeSnippetExpression("value")));
1548
cmp
.SetStatements.Add(cis);
1555
cc.Members.Add(
cmp
);
1600
arrKeyType.Add(
cmp
.Type);
1609
cmp
.Attributes |= MemberAttributes.Static;
1820
cmp
.Type = new CodeTypeReference(strEnum, 1);
1824
cmp
.Type = new CodeTypeReference(strEnum);
1924
cmp
.Type = new CodeTypeReference(strEnum, 1);
1928
cmp
.Type = new CodeTypeReference(strEnum);
4281
cmp
.Type = new CodeTypeReference("System.Int32");
4282
cmp
.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Override;
4283
cmp
.Name = "Count";
4284
cmp
.ImplementationTypes.Add("System.Collections.ICollection");
4285
cmp
.GetStatements.Add(new CodeMethodReturnStatement(new CodePropertyReferenceExpression(
4288
ccc.Members.Add(
cmp
);
4298
cmp
.Type = new CodeTypeReference("System.Boolean");
4299
cmp
.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Override;
4300
cmp
.Name = "IsSynchronized";
4301
cmp
.ImplementationTypes.Add("System.Collections.ICollection");
4302
cmp
.GetStatements.Add(new CodeMethodReturnStatement(new CodePropertyReferenceExpression(
4305
ccc.Members.Add(
cmp
);
4314
cmp
.Type = new CodeTypeReference("System.Object");
4315
cmp
.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Override;
4316
cmp
.Name = "SyncRoot";
4317
cmp
.ImplementationTypes.Add("System.Collections.ICollection");
4318
cmp
.GetStatements.Add(new CodeMethodReturnStatement(new CodeThisReferenceExpression()));
4319
ccc.Members.Add(
cmp
);
4462
cmp
.Type = new CodeTypeReference("System.Object");
4463
cmp
.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Override;
4464
cmp
.Name = "Current";
4465
cmp
.ImplementationTypes.Add("System.Collections.IEnumerator");
4472
cmp
.GetStatements.Add(new CodeMethodReturnStatement(coce));
4473
ecc.Members.Add(
cmp
);
5318
cmp
.Name = PublicNamesUsed["ClassNameProperty"].ToString();
5319
cmp
.Attributes = MemberAttributes.Public | MemberAttributes.Final;
5320
cmp
.Type = new CodeTypeReference("System.String");
5327
cmp
.CustomAttributes = new CodeAttributeDeclarationCollection();
5328
cmp
.CustomAttributes.Add(cad);
5335
cmp
.CustomAttributes.Add(cad);
5337
cmp
.GetStatements.Add(new CodeVariableDeclarationStatement("System.String", strRetVar,
5388
cmp
.GetStatements.Add(cis);
5390
cmp
.GetStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(strRetVar)));
5391
cc.Members.Add(
cmp
);
5958
cmp
.Name = PublicNamesUsed["ScopeProperty"].ToString();
5959
cmp
.Attributes = MemberAttributes.Public | MemberAttributes.Final;
5960
cmp
.Type = new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString());
5967
cmp
.CustomAttributes = new CodeAttributeDeclarationCollection();
5968
cmp
.CustomAttributes.Add(cad);
5979
cmp
.CustomAttributes.Add(cad);
5994
cmp
.GetStatements.Add(cis);
6006
cmp
.SetStatements.Add(cis);
6007
cc.Members.Add(
cmp
);
6009
cmp
.Comments.Add(new CodeCommentStatement(SR.CommentManagementScope));