Show / Hide Table of Contents

Class ReflectionHelper

Various utility methods aiding Reflection tasks.
Inheritance
object
ReflectionHelper
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Jotunn.Utils
Assembly: Jotunn.dll
Syntax
public static class ReflectionHelper

Fields

Name Description
AllBindingFlags All possible binding flags

Methods

Name Description
GetCallingAssembly() Get the Assembly of the first caller outside of this assembly
GetCallingType() Get the ReflectedType of the first caller outside of this assembly
GetEnumeratedType(Type) Get the generic IEnumerable type of this type.
https://stackoverflow.com/a/21995826
GetPrivateField<T>(object, string) Get the value of a private field of any class instance
GetPrivateField<T>(Type, string) Get the value of a private static field of any class
GetPrivateProperty<T>(object, string) Get the value of a private property of any class instance
HasImplementedRawGeneric(Type, Type) Determine whether the specified type type is a subtype of the specified generic type or implements the specified generic interface.
InvokePrivate(object, string, object[]) Invoke a private method of any class instance
IsEnumerable(Type) Determines if this type inherits from IEnumerable
IsSameOrSubclass(Type, Type) Determines whether this type is the same or a subclass of another type
SetPrivateField(object, string, object) Set a value of a private field of any class instance
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾