11 writes to cmp
System.Management (11)
WmiGenerator.cs (11)
972cmp = new CodeMemberProperty (); 1009cmp = new CodeMemberProperty(); 1053cmp = new CodeMemberProperty(); 1155cmp = new CodeMemberProperty (); 1230cmp = new CodeMemberProperty (); 4339cmp = new CodeMemberProperty(); 4357cmp = new CodeMemberProperty(); 4374cmp = new CodeMemberProperty(); 4555cmp = new CodeMemberProperty(); 5419cmp = new CodeMemberProperty (); 6070cmp = new CodeMemberProperty();
121 references to cmp
System.Management (121)
WmiGenerator.cs (121)
973cmp.Name = propName; 974cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final ; 975cmp.Type = new CodeTypeReference(propType); 982cmp.CustomAttributes = new CodeAttributeDeclarationCollection(); 983cmp.CustomAttributes.Add(cad); 990cmp.CustomAttributes.Add(cad); 994cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodeSnippetExpression(propValue.ToString()))); 998cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodePrimitiveExpression(propValue))); 1000cc.Members.Add (cmp); 1003cmp.Comments.Add(new CodeCommentStatement(Comment)); 1010cmp.Name = propName; 1011cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final; 1012cmp.Type = new CodeTypeReference(propType); 1016cmp.Attributes = cmp.Attributes | MemberAttributes.Static; 1024cmp.CustomAttributes = new CodeAttributeDeclarationCollection(); 1025cmp.CustomAttributes.Add(cad); 1036cmp.CustomAttributes.Add(cad); 1039cmp.GetStatements.Add(new CodeMethodReturnStatement(Value)); 1041cmp.SetStatements.Add(new CodeAssignStatement(Value, 1043cc.Members.Add(cmp); 1047cmp.Comments.Add(new CodeCommentStatement(Comment)); 1054cmp.Name = PublicNamesUsed["PathProperty"].ToString(); 1055cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final; 1056cmp.Type = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 1063cmp.CustomAttributes = new CodeAttributeDeclarationCollection(); 1064cmp.CustomAttributes.Add(cad); 1079cmp.GetStatements.Add(cis); 1114cmp.SetStatements.Add(cis); 1115cc.Members.Add(cmp); 1117cmp.Comments.Add(new CodeCommentStatement(GetString("COMMENT_MGMTPATH"))); 1162cmp.CustomAttributes = new CodeAttributeDeclarationCollection(); 1163cmp.CustomAttributes.Add(cad); 1184cmp.Name = (new string(strPropName)).ToUpper(CultureInfo.InvariantCulture); //ConvertToTitleCase(new string(strPropName)); 1185cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final; 1186cmp.Type = ConvertCIMType(prop.Type,prop.IsArray); 1192cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cie))); 1193SysPropsClass.Members.Add(cmp); 1231cmp.Name = PublicProperties[prop.Name].ToString(); 1232cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final; 1233cmp.Type = ConvertCIMType(prop.Type,prop.IsArray); 1237CodeTypeReference dateType = cmp.Type; 1240cmp.Type = dateType; 1246if((cmp.Type.ArrayRank == 0 && cmp.Type.BaseType == new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()).BaseType) || 1247cmp.Type.ArrayRank > 0 && cmp.Type.ArrayElementType .BaseType == new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()).BaseType) 1266cmp.CustomAttributes = new CodeAttributeDeclarationCollection(); 1267cmp.CustomAttributes.Add(cad); 1283cmp.CustomAttributes.Add(cad); 1308cmp.CustomAttributes.Add(cad); 1354cmp.CustomAttributes.Add(cad); 1382cis.TrueStatements.Add(new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cmie ))); 1400new CodeArrayCreateExpression(cmp.Type,cInit))); 1409cmp.GetStatements.Add (cis); 1446GenerateCodeForRefAndDateTimeTypes(cie,prop.IsArray,cmp.GetStatements,PublicNamesUsed["PathClass"].ToString(),null,false); 1456GenerateCodeForRefAndDateTimeTypes(cie,prop.IsArray,cmp.GetStatements,"System.TimeSpan",null,false); 1460GenerateCodeForRefAndDateTimeTypes(cie,prop.IsArray,cmp.GetStatements,"System.DateTime",null,false); 1469AddGetStatementsForEnumArray(cie,cmp); 1477cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cmie ))); 1482cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cie))); 1506AddPropertySet(cie,prop.IsArray,cmp.SetStatements,PublicNamesUsed["PathClass"].ToString(),null); 1516AddPropertySet(cie,prop.IsArray,cmp.SetStatements,"System.TimeSpan",null); 1520AddPropertySet(cie,prop.IsArray,cmp.SetStatements,"System.DateTime",null); 1557cmp.SetStatements.Add(ccs); 1562cmp.SetStatements.Add(new CodeAssignStatement(cie,new CodeSnippetExpression("value"))); 1596cmp.SetStatements.Add(cis); 1603cc.Members.Add(cmp); 1648arrKeyType.Add(cmp.Type); 1657cmp.Attributes |= MemberAttributes.Static; 1870cmp.Type = new CodeTypeReference(strEnum, 1); 1874cmp.Type = new CodeTypeReference(strEnum); 1974cmp.Type = new CodeTypeReference(strEnum, 1); 1978cmp.Type = new CodeTypeReference(strEnum); 4340cmp.Type = new CodeTypeReference("System.Int32"); 4341cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Override; 4342cmp.Name = "Count"; 4343cmp.ImplementationTypes.Add("System.Collections.ICollection"); 4345cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodePropertyReferenceExpression( 4348ccc.Members.Add(cmp); 4358cmp.Type = new CodeTypeReference("System.Boolean"); 4359cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Override; 4360cmp.Name = "IsSynchronized"; 4361cmp.ImplementationTypes.Add("System.Collections.ICollection"); 4363cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodePropertyReferenceExpression( 4366ccc.Members.Add(cmp); 4375cmp.Type = new CodeTypeReference("System.Object"); 4376cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Override; 4377cmp.Name = "SyncRoot"; 4378cmp.ImplementationTypes.Add("System.Collections.ICollection"); 4380cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodeThisReferenceExpression())); 4381ccc.Members.Add(cmp); 4557cmp.Type = new CodeTypeReference("System.Object"); 4558cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Override; 4559cmp.Name = "Current"; 4560cmp.ImplementationTypes.Add("System.Collections.IEnumerator"); 4568cmp.GetStatements.Add(new CodeMethodReturnStatement(coce)); 4569ecc.Members.Add(cmp); 5420cmp.Name = PublicNamesUsed["ClassNameProperty"].ToString(); 5421cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final ; 5422cmp.Type = new CodeTypeReference("System.String"); 5429cmp.CustomAttributes = new CodeAttributeDeclarationCollection(); 5430cmp.CustomAttributes.Add(cad); 5437cmp.CustomAttributes.Add(cad); 5439cmp.GetStatements.Add (new CodeVariableDeclarationStatement("System.String",strRetVar, 5490cmp.GetStatements.Add(cis); 5492cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodeVariableReferenceExpression(strRetVar))); 5493cc.Members.Add (cmp); 6071cmp.Name = PublicNamesUsed["ScopeProperty"].ToString(); 6072cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final; 6073cmp.Type = new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()); 6080cmp.CustomAttributes = new CodeAttributeDeclarationCollection(); 6081cmp.CustomAttributes.Add(cad); 6092cmp.CustomAttributes.Add(cad); 6107cmp.GetStatements.Add(cis); 6119cmp.SetStatements.Add(cis); 6120cc.Members.Add(cmp); 6122cmp.Comments.Add(new CodeCommentStatement(GetString("COMMENT_MGMTSCOPE")));