Implement core of Reflection.Type and some helper functions
This commit is contained in:
24
Il2CppInspector/Reflection/MemberInfo.cs
Normal file
24
Il2CppInspector/Reflection/MemberInfo.cs
Normal 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.
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user