diff options
author | jfrijters <jfrijters> | 2010-02-26 12:26:20 +0300 |
---|---|---|
committer | jfrijters <jfrijters> | 2010-02-26 12:26:20 +0300 |
commit | d4c8f62b7c2a498997cd4dace2c5bb9674be1810 (patch) | |
tree | 71eb73524c245f2f8360b2119213eda1e131f060 /reflect/Metadata | |
parent | 05d9e5facb46f53a14f26f1e0231a96e8e8c0cf3 (diff) |
Made property and event public/static flag handling compatible with .NET
Diffstat (limited to 'reflect/Metadata')
-rw-r--r-- | reflect/Metadata/Tables.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/reflect/Metadata/Tables.cs b/reflect/Metadata/Tables.cs index edda48d7..7c1cccf2 100644 --- a/reflect/Metadata/Tables.cs +++ b/reflect/Metadata/Tables.cs @@ -1646,6 +1646,24 @@ namespace IKVM.Reflection.Metadata } return null; } + + internal void ComputeFlags(Module module, int token, out bool isPublic, out bool isStatic) + { + isPublic = false; + isStatic = false; + MethodInfo method; + for (int i = 0; (method = GetNextMethod(module, token, true, -1, ref i)) != null; ) + { + if (method.IsPublic) + { + isPublic = true; + } + if (method.IsStatic) + { + isStatic = true; + } + } + } } sealed class MethodImplTable : Table<MethodImplTable.Record>, IComparer<MethodImplTable.Record> |