Summary
Reflection utilities used throughout Animancer.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["AnimancerReflection"]
class Type type-node
Syntax
public static class AnimancerReflection
Fields
Name | Constant Value | Summary |
---|---|---|
AnyAccessBindings | 60 |
Commonly used
System.Reflection.BindingFlags combinations.static
|
InstanceBindings | 52 |
Commonly used
System.Reflection.BindingFlags combinations.static
|
StaticBindings | 56 |
Commonly used
System.Reflection.BindingFlags combinations.static
|
Methods
Name | Value | Summary |
---|---|---|
AppendDelegate |
StringBuilder |
Appends the details of the `method` to the `text`.
static
|
Append |
int |
Appends the generic arguments of `type` (after skipping the specified number).
static
|
Create |
Object |
Creates a new instance of the `type` using its parameterless constructor if it has one or a fully
uninitialized object if it doesn't. Or returns
null if the System.Type.IsAbstract .
static
|
Create |
T |
Creates a T using its parameterless constructor if it has one or a fully
uninitialized object if it doesn't. Or returns
null if the System.Type.IsAbstract .
static
|
GetAttribute |
TAttribute |
[Animancer Extension]
Returns the first TAttribute attribute on the `member`
or
null if there is none.
static
|
GetFullName |
string |
Returns the `method`'s
DeclaringType.Name .static
|
GetInvocationList |
Delegate[] |
Tries to use
Animancer.AnimancerReflection.TryGetInvocationListNonAlloc(System.MulticastDelegate,System.Delegate[]@) .
Otherwise uses the regular System.MulticastDelegate.GetInvocationList .
static
|
GetNameCS |
string |
Returns the name of the `type` as it would appear in C# code.
static
|
ToStringDetailed |
string |
Returns a string describing the details of the `method`.
static
|
Try |
bool |
Uses reflection to achieve the same as
System.Delegate.GetInvocationList without allocating
garbage every time.
static
|
TryInvoke |
Object |
Invokes a method with the specified `methodName` if it exists on the `obj`.
static
|