3 writes to PrivateNamesUsed
System.Management (3)
System\Management\WMIGenerator.cs (3)
730nIndex = IsContainedIn(s, ref PrivateNamesUsed); 742nIndex = IsContainedIn(s, ref PrivateNamesUsed); 804if (IsContainedIn(strTemp, ref PrivateNamesUsed) == -1)
202 references to PrivateNamesUsed
System.Management (202)
System\Management\WMIGenerator.cs (202)
241cc = new CodeTypeDeclaration(PrivateNamesUsed["GeneratedClassName"].ToString()); 243cc.BaseTypes.Add(new CodeTypeReference(PrivateNamesUsed["ComponentClass"].ToString())); 279GeneratePrivateMember(PrivateNamesUsed["CreationWmiNamespace"].ToString(), "System.String", 285GeneratePrivateMember(PrivateNamesUsed["CreationClassName"].ToString(), "System.String", 294PrivateNamesUsed["SystemPropertiesObject"].ToString(), true, true, 303PrivateNamesUsed["CurrentObject"].ToString(), true, false, 327new CodeSnippetExpression(PrivateNamesUsed["AutoCommitProperty"].ToString()), false, 343GeneratePrivateMember(PrivateNamesUsed["statMgmtScope"].ToString(), PublicNamesUsed["ScopeClass"].ToString(), 347GeneratePublicProperty(PrivateNamesUsed["staticScope"].ToString(), PublicNamesUsed["ScopeClass"].ToString(), 348new CodeVariableReferenceExpression(PrivateNamesUsed["statMgmtScope"].ToString()), true, SR.CommentStaticScopeProperty, true); 444GeneratePrivateMember(PrivateNamesUsed["SystemPropertiesObject"].ToString(), PublicNamesUsed["SystemPropertiesClass"].ToString(), null); 447GeneratePrivateMember(PrivateNamesUsed["LateBoundObject"].ToString(), PublicNamesUsed["LateBoundClass"].ToString(), SR.CommentLateBoundObject); 450GeneratePrivateMember(PrivateNamesUsed["AutoCommitProperty"].ToString(), "System.Boolean", new CodePrimitiveExpression(true), false, SR.CommentPrivateAutoCommit); 453GeneratePrivateMember(PrivateNamesUsed["EmbeddedObject"].ToString(), PublicNamesUsed["BaseObjClass"].ToString(), SR.CommentEmbeddedObject); 456GeneratePrivateMember(PrivateNamesUsed["CurrentObject"].ToString(), PublicNamesUsed["BaseObjClass"].ToString(), SR.CommentCurrentObject); 459GeneratePrivateMember(PrivateNamesUsed["IsEmbedded"].ToString(), "System.Boolean", new CodePrimitiveExpression(false), false, SR.CommentFlagForEmbedded); 648PrivateNamesUsed.Add("SystemPropertiesObject", "PrivateSystemProperties"); 649PrivateNamesUsed.Add("LateBoundObject", "PrivateLateBoundObject"); 650PrivateNamesUsed.Add("AutoCommitProperty", "AutoCommitProp"); 651PrivateNamesUsed.Add("Privileges", "EnablePrivileges"); 652PrivateNamesUsed.Add("ComponentClass", "System.ComponentModel.Component"); 653PrivateNamesUsed.Add("ScopeParam", "mgmtScope"); 654PrivateNamesUsed.Add("NullRefExcep", "System.NullReferenceException"); 655PrivateNamesUsed.Add("ConverterClass", "WMIValueTypeConverter"); 656PrivateNamesUsed.Add("EnumParam", "enumOptions"); 657PrivateNamesUsed.Add("CreationClassName", "CreatedClassName"); 658PrivateNamesUsed.Add("CreationWmiNamespace", "CreatedWmiNamespace"); 659PrivateNamesUsed.Add("ClassNameCheckFunc", "CheckIfProperClass"); 660PrivateNamesUsed.Add("EmbeddedObject", "embeddedObj"); 661PrivateNamesUsed.Add("CurrentObject", "curObj"); 662PrivateNamesUsed.Add("IsEmbedded", "isEmbedded"); 663PrivateNamesUsed.Add("ToDateTimeMethod", "ToDateTime"); 664PrivateNamesUsed.Add("ToDMTFDateTimeMethod", "ToDmtfDateTime"); 665PrivateNamesUsed.Add("ToDMTFTimeIntervalMethod", "ToDmtfTimeInterval"); 666PrivateNamesUsed.Add("ToTimeSpanMethod", "ToTimeSpan"); 667PrivateNamesUsed.Add("SetMgmtScope", "SetStaticManagementScope"); 668PrivateNamesUsed.Add("statMgmtScope", "statMgmtScope"); 669PrivateNamesUsed.Add("staticScope", "StaticScope"); 670PrivateNamesUsed.Add("initVariable", "Initialize"); 671PrivateNamesUsed.Add("putOptions", "putOptions"); 672PrivateNamesUsed.Add("InitialObjectFunc", "InitializeObject"); 736PrivateNamesUsed.SetByIndex(nIndex, ResolveCollision(s, false)); 748PrivateNamesUsed.SetByIndex(nIndex, ResolveCollision(s, false)); 767string strTemp = PrivateNamesUsed["GeneratedClassName"].ToString() + "Collection"; 768PrivateNamesUsed.Add("CollectionClass", ResolveCollision(strTemp, true)); 770strTemp = PrivateNamesUsed["GeneratedClassName"].ToString() + "Enumerator"; 771PrivateNamesUsed.Add("EnumeratorClass", ResolveCollision(strTemp, true)); 892PrivateNamesUsed.Add("GeneratedClassName", strClass); 893PrivateNamesUsed.Add("GeneratedNamespace", strNs); 901cn = new CodeNamespace(PrivateNamesUsed["GeneratedNamespace"].ToString()); 1026PrivateNamesUsed["LateBoundObject"].ToString()), 1031cboe.Left = new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()); 1044cboe.Left = new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()); 1051cmie.Method.MethodName = PrivateNamesUsed["ClassNameCheckFunc"].ToString(); 1098cctor.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()), new CodeVariableReferenceExpression("ManagedObject"))); 1148new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()), 1156cf.Name = PrivateNamesUsed["LateBoundObject"].ToString(); 1246new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()), 1309caa.Value = new CodeTypeOfExpression(PrivateNamesUsed["ConverterClass"].ToString()); 1526cmie.Method.TargetObject = new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()); 1529cboe = new CodeBinaryOperatorExpression(new CodeVariableReferenceExpression(PrivateNamesUsed["AutoCommitProperty"].ToString()), 1533CodeBinaryOperatorExpression cboe1 = new CodeBinaryOperatorExpression(new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()), 2104cmieInit.Method.MethodName = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2113cmie.Method.TargetObject = new CodeTypeReferenceExpression(PrivateNamesUsed["GeneratedClassName"].ToString()); 2146cmieInit.Method.MethodName = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2171cmie.Method.TargetObject = new CodeTypeReferenceExpression(PrivateNamesUsed["GeneratedClassName"].ToString()); 2200cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 2203cmieInit.Method.MethodName = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2229new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()))); 2232cmie.Method.TargetObject = new CodeTypeReferenceExpression(PrivateNamesUsed["GeneratedClassName"].ToString()); 2271cmieInit.Method.MethodName = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2301cmieInit.Method.MethodName = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2325cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 2329cmieInit.Method.MethodName = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2332cmieInit.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString())); 2351PrivateNamesUsed["ScopeParam"].ToString())); 2354cmieInit.Method.MethodName = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2357cmieInit.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString())); 2359cmie.Method.TargetObject = new CodeTypeReferenceExpression(PrivateNamesUsed["GeneratedClassName"].ToString()); 2391cmieInit.Method.MethodName = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2396cmie.Method.TargetObject = new CodeTypeReferenceExpression(PrivateNamesUsed["GeneratedClassName"].ToString()); 2423PrivateNamesUsed["ScopeParam"].ToString())); 2430cmieInit.Method.MethodName = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2433cmieInit.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString())); 2436cmie.Method.TargetObject = new CodeTypeReferenceExpression(PrivateNamesUsed["GeneratedClassName"].ToString()); 2483cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 2488cmieInit.Method.MethodName = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2491cmieInit.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString())); 2534cmie.Method.MethodName = PrivateNamesUsed["ClassNameCheckFunc"].ToString(); 2544new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()), 2549coce.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString())); 2550cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["SystemPropertiesObject"].ToString()), coce)); 2551cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()), 2552new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()))); 2598cmie.Method.MethodName = PrivateNamesUsed["ClassNameCheckFunc"].ToString(); 2611new CodeVariableReferenceExpression(PrivateNamesUsed["EmbeddedObject"].ToString()), 2617cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["SystemPropertiesObject"].ToString()), coce)); 2618cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()), 2619new CodeVariableReferenceExpression(PrivateNamesUsed["EmbeddedObject"].ToString()))); 2621cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()), 2667cmmInit.Name = PrivateNamesUsed["InitialObjectFunc"].ToString(); 2670cmmInit.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 2686cmie.Method.MethodName = PrivateNamesUsed["ClassNameCheckFunc"].ToString(); 2689cmie.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString())); 2708coce.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString())); 2712PrivateNamesUsed["LateBoundObject"].ToString()), 2716coce.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString())); 2718PrivateNamesUsed["SystemPropertiesObject"].ToString()), 2721cmmInit.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()), 2722new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()))); 2731new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()), 2796string strTemp = PrivateNamesUsed["LateBoundObject"].ToString(); 2842cboe.Left = new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()); 2861cocePath.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["CreationClassName"].ToString())); 2866coce1.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["statMgmtScope"].ToString())); 2883new CodeVariableReferenceExpression(bStatic ? strClassObj : PrivateNamesUsed["LateBoundObject"].ToString()), 2889PrivateNamesUsed["Privileges"].ToString(), cprePrivileges)); 3182cis.TrueStatements.Add(new CodeAssignStatement(cprePrivileges, new CodeVariableReferenceExpression(PrivateNamesUsed["Privileges"].ToString()))); 3282cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3312cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3343cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3374cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3421cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3422cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 3424PrivateNamesUsed["EnumParam"].ToString())); 3433cboe.Left = new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()); 3440cboe1.Left = new CodeVariableReferenceExpression(PrivateNamesUsed["statMgmtScope"].ToString()); 3447cis1.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()), coce)); 3450new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()), 3455cis1.FalseStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()), 3456new CodeVariableReferenceExpression(PrivateNamesUsed["statMgmtScope"].ToString()))); 3478coce.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString())); 3487cboe.Left = new CodeVariableReferenceExpression(PrivateNamesUsed["EnumParam"].ToString()); 3494cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["EnumParam"].ToString()), 3497new CodeVariableReferenceExpression(PrivateNamesUsed["EnumParam"].ToString()), 3505coce.CreateType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3509cmie.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["EnumParam"].ToString())); 3532cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3533cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 3540cmie.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString())); 3563cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3564cmm.Parameters.Add(new CodeParameterDeclarationExpression(PublicNamesUsed["ScopeClass"].ToString(), PrivateNamesUsed["ScopeParam"].ToString())); 3572cmie.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString())); 3604cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3606cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 3612cboe.Left = new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()); 3620cboe1.Left = new CodeVariableReferenceExpression(PrivateNamesUsed["statMgmtScope"].ToString()); 3627cis1.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()), coce)); 3630new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()), 3634cis1.FalseStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()), 3635new CodeVariableReferenceExpression(PrivateNamesUsed["statMgmtScope"].ToString()))); 3648coce.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString())); 3659PrivateNamesUsed["EnumParam"].ToString(), coce)); 3662new CodeVariableReferenceExpression(PrivateNamesUsed["EnumParam"].ToString()), 3671new CodeVariableReferenceExpression(PrivateNamesUsed["EnumParam"].ToString()))); 3674coce.CreateType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3744CodeTypeDeclaration CodeConvertorClass = new CodeTypeDeclaration(PrivateNamesUsed["ConverterClass"].ToString()); 4245ccc = new CodeTypeDeclaration(PrivateNamesUsed["CollectionClass"].ToString()); 4383coce.CreateType = new CodeTypeReference(PrivateNamesUsed["GeneratedClassName"].ToString()); 4404coce.CreateType = new CodeTypeReference(PrivateNamesUsed["EnumeratorClass"].ToString()); 4424ecc = new CodeTypeDeclaration(PrivateNamesUsed["EnumeratorClass"].ToString()); 4467coce.CreateType = new CodeTypeReference(PrivateNamesUsed["GeneratedClassName"].ToString()); 4713return PrivateNamesUsed["GeneratedNamespace"].ToString() + "." + 4714PrivateNamesUsed["GeneratedClassName"].ToString(); 4950cboe.Left = new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()); 4956cmie.Method.TargetObject = new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()); 4971cpde.Name = PrivateNamesUsed["putOptions"].ToString(); 4984cboe.Left = new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()); 4990cmie.Method.TargetObject = new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()); 4992cmie.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["putOptions"].ToString())); 5338new CodeVariableReferenceExpression(PrivateNamesUsed["CreationClassName"].ToString()))); 5343cboe.Left = new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()); 5351cboe1.Left = new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()), 5361new CodeIndexerExpression(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()), 5384new CodeVariableReferenceExpression(PrivateNamesUsed["CreationClassName"].ToString()))); 5404cmm.Name = PrivateNamesUsed["ClassNameCheckFunc"].ToString(); 5408cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 5450coce.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString())); 5455cmre.MethodName = PrivateNamesUsed["ClassNameCheckFunc"].ToString(); 5476cmm.Name = PrivateNamesUsed["ClassNameCheckFunc"].ToString(); 5887cmie.Method.MethodName = PrivateNamesUsed["ToDateTimeMethod"].ToString(); 5907cmie.Method.MethodName = PrivateNamesUsed["ToTimeSpanMethod"].ToString(); 5934cmie1.Method.MethodName = PrivateNamesUsed["ToDMTFDateTimeMethod"].ToString(); 5941cmie2.Method.MethodName = PrivateNamesUsed["ToDMTFTimeIntervalMethod"].ToString(); 5984cboe.Left = new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()); 5990new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()), "Scope"); 5998cboe.Left = new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()); 6185cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["GeneratedClassName"].ToString()); 6204cboe1.Left = new CodeVariableReferenceExpression(PrivateNamesUsed["statMgmtScope"].ToString()); 6216new CodeVariableReferenceExpression(PrivateNamesUsed["CreationWmiNamespace"].ToString()))); 6220new CodeVariableReferenceExpression(PrivateNamesUsed["statMgmtScope"].ToString()))); 6227cocePath.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["CreationClassName"].ToString())); 6244coce.CreateType = new CodeTypeReference(PrivateNamesUsed["GeneratedClassName"].ToString()); 6277cmie1.Method.TargetObject = new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()); 6325cmmdt.Name = PrivateNamesUsed["ToDateTimeMethod"].ToString(); 6769cmmts.Name = PrivateNamesUsed["ToDMTFTimeIntervalMethod"].ToString(); 7031cmmdt.Name = PrivateNamesUsed["ToDMTFDateTimeMethod"].ToString(); 7353cmmts.Name = PrivateNamesUsed["ToTimeSpanMethod"].ToString(); 7673cmieInit.Method.MethodName = PrivateNamesUsed["initVariable"].ToString(); 7682cmmInit.Name = PrivateNamesUsed["initVariable"].ToString(); 7687cmmInit.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["AutoCommitProperty"].ToString()), 7689cmmInit.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()),