1IPreCompileContext[] allPreCompileContexts = SystemInstances.LanguageModelMgr.AllPreCompileContexts(true, true);
2if (allPreCompileContexts != null)
3{
4 foreach (IPreCompileContext preCompileContext in allPreCompileContexts)
5 {
6 ISignature[] signatures;
7 if((signatures = preCompileContext.FindSignature("PTO_PWM")) != null)
8 {
9 MsgDebug.DisplayInfo(string.Format(
10 "{0} PTO_PMW signatures found in {1} preCompiledContext",
11 signatures.Length,
12 preCompileContext.Namespace));
13 foreach (ISignature sign in signatures)
14 {
15 foreach (IVariable var in sign.All)
16 {
17 if (var.Type.ToString() == "PTOSimple")
18 MsgDebug.DisplayInfo(string.Format(
19 "PTOSimple type found in {0} var in {1} signature",
20 var.Name,
21 sign.Name));
22 }
23 }
24 }
25 }
26 }
27}