mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-05 12:52:24 +08:00
Update ReflectionUtility.cs
This commit is contained in:
@ -98,7 +98,7 @@ namespace UnityExplorer
|
|||||||
|
|
||||||
// Getting the actual type of an object
|
// Getting the actual type of an object
|
||||||
internal virtual Type Internal_GetActualType(object obj)
|
internal virtual Type Internal_GetActualType(object obj)
|
||||||
=> obj.GetType();
|
=> obj?.GetType();
|
||||||
|
|
||||||
// Force-casting an object to a type
|
// Force-casting an object to a type
|
||||||
internal virtual object Internal_TryCast(object obj, Type castTo)
|
internal virtual object Internal_TryCast(object obj, Type castTo)
|
||||||
|
Reference in New Issue
Block a user