11 writes to cmp
System.Management (11)
System\Management\WMIGenerator.cs (11)
931cmp = new CodeMemberProperty(); 968cmp = new CodeMemberProperty(); 1012cmp = new CodeMemberProperty(); 1114cmp = new CodeMemberProperty(); 1189cmp = new CodeMemberProperty(); 4297cmp = new CodeMemberProperty(); 4314cmp = new CodeMemberProperty(); 4330cmp = new CodeMemberProperty(); 4495cmp = new CodeMemberProperty(); 5351cmp = new CodeMemberProperty(); 5991cmp = new CodeMemberProperty();
120 references to cmp
System.Management (120)
System\Management\WMIGenerator.cs (120)
932cmp.Name = propName; 933cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final; 934cmp.Type = new CodeTypeReference(propType); 941cmp.CustomAttributes = new CodeAttributeDeclarationCollection(); 942cmp.CustomAttributes.Add(cad); 949cmp.CustomAttributes.Add(cad); 953cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodeSnippetExpression(propValue))); 957cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(propValue))); 959cc.Members.Add(cmp); 962cmp.Comments.Add(new CodeCommentStatement(Comment)); 969cmp.Name = propName; 970cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final; 971cmp.Type = new CodeTypeReference(propType); 975cmp.Attributes |= MemberAttributes.Static; 983cmp.CustomAttributes = new CodeAttributeDeclarationCollection(); 984cmp.CustomAttributes.Add(cad); 995cmp.CustomAttributes.Add(cad); 998cmp.GetStatements.Add(new CodeMethodReturnStatement(Value)); 1000cmp.SetStatements.Add(new CodeAssignStatement(Value, 1002cc.Members.Add(cmp); 1006cmp.Comments.Add(new CodeCommentStatement(Comment)); 1013cmp.Name = PublicNamesUsed["PathProperty"].ToString(); 1014cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final; 1015cmp.Type = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 1022cmp.CustomAttributes = new CodeAttributeDeclarationCollection(); 1023cmp.CustomAttributes.Add(cad); 1038cmp.GetStatements.Add(cis); 1073cmp.SetStatements.Add(cis); 1074cc.Members.Add(cmp); 1076cmp.Comments.Add(new CodeCommentStatement(SR.CommentManagementPath)); 1121cmp.CustomAttributes = new CodeAttributeDeclarationCollection(); 1122cmp.CustomAttributes.Add(cad); 1143cmp.Name = (new string(strPropName)).ToUpperInvariant(); 1144cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final; 1145cmp.Type = ConvertCIMType(prop.Type, prop.IsArray); 1151cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodeCastExpression(cmp.Type, cie))); 1152SysPropsClass.Members.Add(cmp); 1190cmp.Name = PublicProperties[prop.Name].ToString(); 1191cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final; 1192cmp.Type = ConvertCIMType(prop.Type, prop.IsArray); 1196CodeTypeReference dateType = cmp.Type; 1199cmp.Type = dateType; 1205if ((cmp.Type.ArrayRank == 0 && cmp.Type.BaseType == new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()).BaseType) || 1206cmp.Type.ArrayRank > 0 && cmp.Type.ArrayElementType.BaseType == new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()).BaseType) 1225cmp.CustomAttributes = new CodeAttributeDeclarationCollection(); 1226cmp.CustomAttributes.Add(cad); 1242cmp.CustomAttributes.Add(cad); 1267cmp.CustomAttributes.Add(cad); 1313cmp.CustomAttributes.Add(cad); 1341cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodeCastExpression(cmp.Type, cmie))); 1359new CodeArrayCreateExpression(cmp.Type, cInit))); 1368cmp.GetStatements.Add(cis); 1405GenerateCodeForRefAndDateTimeTypes(cie, prop.IsArray, cmp.GetStatements, PublicNamesUsed["PathClass"].ToString(), null, false); 1415GenerateCodeForRefAndDateTimeTypes(cie, prop.IsArray, cmp.GetStatements, "System.TimeSpan", null, false); 1419GenerateCodeForRefAndDateTimeTypes(cie, prop.IsArray, cmp.GetStatements, "System.DateTime", null, false); 1428AddGetStatementsForEnumArray(cie, cmp); 1436cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodeCastExpression(cmp.Type, cmie))); 1441cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodeCastExpression(cmp.Type, cie))); 1465AddPropertySet(cie, prop.IsArray, cmp.SetStatements, PublicNamesUsed["PathClass"].ToString(), null); 1475AddPropertySet(cie, prop.IsArray, cmp.SetStatements, "System.TimeSpan", null); 1479AddPropertySet(cie, prop.IsArray, cmp.SetStatements, "System.DateTime", null); 1516cmp.SetStatements.Add(ccs); 1521cmp.SetStatements.Add(new CodeAssignStatement(cie, new CodeSnippetExpression("value"))); 1548cmp.SetStatements.Add(cis); 1555cc.Members.Add(cmp); 1600arrKeyType.Add(cmp.Type); 1609cmp.Attributes |= MemberAttributes.Static; 1820cmp.Type = new CodeTypeReference(strEnum, 1); 1824cmp.Type = new CodeTypeReference(strEnum); 1924cmp.Type = new CodeTypeReference(strEnum, 1); 1928cmp.Type = new CodeTypeReference(strEnum); 4298cmp.Type = new CodeTypeReference("System.Int32"); 4299cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Override; 4300cmp.Name = "Count"; 4301cmp.ImplementationTypes.Add("System.Collections.ICollection"); 4302cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodePropertyReferenceExpression( 4305ccc.Members.Add(cmp); 4315cmp.Type = new CodeTypeReference("System.Boolean"); 4316cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Override; 4317cmp.Name = "IsSynchronized"; 4318cmp.ImplementationTypes.Add("System.Collections.ICollection"); 4319cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodePropertyReferenceExpression( 4322ccc.Members.Add(cmp); 4331cmp.Type = new CodeTypeReference("System.Object"); 4332cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Override; 4333cmp.Name = "SyncRoot"; 4334cmp.ImplementationTypes.Add("System.Collections.ICollection"); 4335cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodeThisReferenceExpression())); 4336ccc.Members.Add(cmp); 4496cmp.Type = new CodeTypeReference("System.Object"); 4497cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Override; 4498cmp.Name = "Current"; 4499cmp.ImplementationTypes.Add("System.Collections.IEnumerator"); 4506cmp.GetStatements.Add(new CodeMethodReturnStatement(coce)); 4507ecc.Members.Add(cmp); 5352cmp.Name = PublicNamesUsed["ClassNameProperty"].ToString(); 5353cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final; 5354cmp.Type = new CodeTypeReference("System.String"); 5361cmp.CustomAttributes = new CodeAttributeDeclarationCollection(); 5362cmp.CustomAttributes.Add(cad); 5369cmp.CustomAttributes.Add(cad); 5371cmp.GetStatements.Add(new CodeVariableDeclarationStatement("System.String", strRetVar, 5422cmp.GetStatements.Add(cis); 5424cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(strRetVar))); 5425cc.Members.Add(cmp); 5992cmp.Name = PublicNamesUsed["ScopeProperty"].ToString(); 5993cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final; 5994cmp.Type = new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()); 6001cmp.CustomAttributes = new CodeAttributeDeclarationCollection(); 6002cmp.CustomAttributes.Add(cad); 6013cmp.CustomAttributes.Add(cad); 6028cmp.GetStatements.Add(cis); 6040cmp.SetStatements.Add(cis); 6041cc.Members.Add(cmp); 6043cmp.Comments.Add(new CodeCommentStatement(SR.CommentManagementScope));