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(); 4280cmp = new CodeMemberProperty(); 4297cmp = new CodeMemberProperty(); 4313cmp = new CodeMemberProperty(); 4461cmp = new CodeMemberProperty(); 5317cmp = new CodeMemberProperty(); 5957cmp = 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); 4281cmp.Type = new CodeTypeReference("System.Int32"); 4282cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Override; 4283cmp.Name = "Count"; 4284cmp.ImplementationTypes.Add("System.Collections.ICollection"); 4285cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodePropertyReferenceExpression( 4288ccc.Members.Add(cmp); 4298cmp.Type = new CodeTypeReference("System.Boolean"); 4299cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Override; 4300cmp.Name = "IsSynchronized"; 4301cmp.ImplementationTypes.Add("System.Collections.ICollection"); 4302cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodePropertyReferenceExpression( 4305ccc.Members.Add(cmp); 4314cmp.Type = new CodeTypeReference("System.Object"); 4315cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Override; 4316cmp.Name = "SyncRoot"; 4317cmp.ImplementationTypes.Add("System.Collections.ICollection"); 4318cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodeThisReferenceExpression())); 4319ccc.Members.Add(cmp); 4462cmp.Type = new CodeTypeReference("System.Object"); 4463cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Override; 4464cmp.Name = "Current"; 4465cmp.ImplementationTypes.Add("System.Collections.IEnumerator"); 4472cmp.GetStatements.Add(new CodeMethodReturnStatement(coce)); 4473ecc.Members.Add(cmp); 5318cmp.Name = PublicNamesUsed["ClassNameProperty"].ToString(); 5319cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final; 5320cmp.Type = new CodeTypeReference("System.String"); 5327cmp.CustomAttributes = new CodeAttributeDeclarationCollection(); 5328cmp.CustomAttributes.Add(cad); 5335cmp.CustomAttributes.Add(cad); 5337cmp.GetStatements.Add(new CodeVariableDeclarationStatement("System.String", strRetVar, 5388cmp.GetStatements.Add(cis); 5390cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(strRetVar))); 5391cc.Members.Add(cmp); 5958cmp.Name = PublicNamesUsed["ScopeProperty"].ToString(); 5959cmp.Attributes = MemberAttributes.Public | MemberAttributes.Final; 5960cmp.Type = new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()); 5967cmp.CustomAttributes = new CodeAttributeDeclarationCollection(); 5968cmp.CustomAttributes.Add(cad); 5979cmp.CustomAttributes.Add(cad); 5994cmp.GetStatements.Add(cis); 6006cmp.SetStatements.Add(cis); 6007cc.Members.Add(cmp); 6009cmp.Comments.Add(new CodeCommentStatement(SR.CommentManagementScope));