Implement core of Reflection.Type and some helper functions

This commit is contained in:
Katy Coe
2017-10-26 08:00:14 +02:00
parent 4ab71d8594
commit 6ba60a276f
5 changed files with 134 additions and 103 deletions

View File

@@ -0,0 +1,24 @@
using System.Collections.Generic;
using System.Reflection;
namespace Il2CppInspector.Reflection {
public abstract class MemberInfo
{
// Assembly that this member is defined in
public Assembly Assembly { get; set; }
// Custom attributes for this member
public IEnumerable<CustomAttributeData> CustomAttributes { get; set; } // TODO
// Type that this type is declared in for nested types
public Type DeclaringType { get; set; } // TODO
// What sort of member this is, eg. method, field etc.
public MemberTypes MemberType { get; set; } // TODO
// Name of the member
public string Name { get; set; }
// TODO: GetCustomAttributes etc.
}
}