diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-09-13 18:37:42 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-09-13 18:37:42 +0200 |
| commit | 000b46b985823ba21926d68926c052e5806c8c49 (patch) | |
| tree | d963743209782031721a2b61d9fdce7852c4f46d /src/CompilerServices | |
| parent | 2616e6ee7a1a34036cc002d28543d0d7a657fdb2 (diff) | |
move recurent reflexion to static in CompilerServices
modifié : src/CompilerServices/CompilerServices.cs
modifié : src/IMLReader.cs
Diffstat (limited to 'src/CompilerServices')
| -rw-r--r-- | src/CompilerServices/CompilerServices.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/CompilerServices/CompilerServices.cs b/src/CompilerServices/CompilerServices.cs index 43c9d704..48f95a8a 100644 --- a/src/CompilerServices/CompilerServices.cs +++ b/src/CompilerServices/CompilerServices.cs @@ -18,7 +18,15 @@ namespace Crow static MethodInfo stringEquals = typeof (string).GetMethod ("Equals", new Type [3] { typeof (string), typeof (string), typeof (StringComparison) }); static MethodInfo miFindByName = typeof (GraphicObject).GetMethod ("FindByName"); - + + public static MethodInfo miIFaceLoad = typeof(Interface).GetMethod ("Load", BindingFlags.Instance | BindingFlags.Public); + public static MethodInfo miGetITemp = typeof(Interface).GetMethod ("GetItemTemplate"); + public static MethodInfo miAddITemp = typeof(Dictionary<string, ItemTemplate>). + GetMethod ("set_Item", new Type[] { typeof(string), typeof(ItemTemplate) }); + public static MethodInfo miGetITempFromDic = typeof(Dictionary<string, ItemTemplate>). + GetMethod ("get_Item", new Type[] { typeof(string) }); + public static FieldInfo fldItemTemplates = typeof(TemplatedGroup).GetField("ItemTemplates"); + public static MethodInfo miCreateExpDel = typeof(ItemTemplate).GetMethod ("CreateExpandDelegate"); #region ValueChange Reflexion member info static EventInfo eiValueChange = typeof (IValueChange).GetEvent ("ValueChanged"); |