6 instantiations of CodeWriter
System.Management (6)
Instrumentation\CodeSpit.cs (3)
53
CodeWriter child = new
CodeWriter
();
68
CodeWriter child = new
CodeWriter
();
102
CodeWriter usingCode = new
CodeWriter
();
Instrumentation\SchemaMapping.cs (2)
22
CodeWriter code = new
CodeWriter
();
90
CodeWriter codeOneLineMembers = codeClass.AddChild(new
CodeWriter
());
Instrumentation\SchemaRegistration.cs (1)
334
CodeWriter code = new
CodeWriter
();
36 references to CodeWriter
System.Management (36)
Instrumentation\CodeSpit.cs (11)
16
public static explicit operator String(
CodeWriter
writer)
45
((
CodeWriter
)child).WriteCode(writer);
49
public
CodeWriter
AddChild(string name)
53
CodeWriter
child = new CodeWriter();
60
public
CodeWriter
AddChild(params string[] parts)
65
public
CodeWriter
AddChildNoIndent(string name)
68
CodeWriter
child = new CodeWriter();
74
public
CodeWriter
AddChild(
CodeWriter
snippet)
102
CodeWriter
usingCode = new CodeWriter();
103
public
CodeWriter
UsingCode { get {return usingCode; } }
Instrumentation\SchemaMapping.cs (22)
22
CodeWriter
code = new CodeWriter();
28
public
CodeWriter
Code { get { return code; } }
87
CodeWriter
codeClass = code.AddChild("public class "+codeClassName+" : IWmiConverter");
90
CodeWriter
codeOneLineMembers = codeClass.AddChild(new CodeWriter());
112
CodeWriter
codeCCTOR = codeClass.AddChild("static "+codeClassName+"()");
119
CodeWriter
codeCTOR = codeClass.AddChild("public "+codeClassName+"()");
142
CodeWriter
codeDTOR = codeClass.AddChild("~"+codeClassName+"()");
152
CodeWriter
codeToWMI = codeClass.AddChild("public void ToWMI(object obj)");
177
CodeWriter
codeIntPtrCast = codeClass.AddChild("public static explicit operator IntPtr("+codeClassName+" obj)");
301
CodeWriter
codeNotNull = codeToWMI.AddChild(String.Format("if(instNET.{0} != null)", field.Name));
302
CodeWriter
codeElse = codeToWMI.AddChild("else");
310
CodeWriter
codeForLoop = codeNotNull.AddChild("for(int i=0;i<len;i++)");
312
CodeWriter
codeFoundType = codeForLoop.AddChild(String.Format("if((instNET.{0}[i] != null) && mapTypeToConverter.Contains(instNET.{0}[i].GetType()))", field.Name));
324
CodeWriter
codeFoundType = codeNotNull.AddChild(String.Format("if(mapTypeToConverter.Contains(instNET.{0}.GetType()))", field.Name));
336
CodeWriter
codeNotNull;
342
CodeWriter
codeElse = codeToWMI.AddChild("else");
352
CodeWriter
codeForLoop = codeNotNull.AddChild("for(int i=0;i<len;i++)");
362
CodeWriter
codeArrayElementNotNull = codeForLoop.AddChild(String.Format("if(instNET.{0}[i] != null)", field.Name));
378
CodeWriter
codeConverterProp = codeClass.AddChild(String.Format("{0} embeddedConverter_{1}", embeddedConverterName, propFieldName));
379
CodeWriter
codeGet = codeConverterProp.AddChild("get");
380
CodeWriter
codeIf = codeGet.AddChild(String.Format("if(null == lazy_embeddedConverter_{0})", propFieldName));
424
CodeWriter
codeQuickString = codeToWMI.AddChild(String.Format("if(null != instNET.{0})", field.Name));
Instrumentation\SchemaRegistration.cs (3)
334
CodeWriter
code = new CodeWriter();
350
CodeWriter
codeWMIConverter = code.AddChild("public class WMINET_Converter");
356
CodeWriter
codeCCTOR = codeWMIConverter.AddChild("static WMINET_Converter()");