Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
- using System.Reflection;
-
- public static class NetFXCoreWrappers
- {
- public static MethodInfo GetMethodInfoEx(this Delegate delegateEx)
- {
- #if NETFX_CORE
- var method = delegateEx.GetMethodInfo();
- #else
- var method = delegateEx.Method;
- #endif
- return method;
- }
-
- public static Type GetDeclaringType(this MethodInfo methodInfo)
- {
- #if NETFX_CORE
- return methodInfo.DeclaringType;
- #else
- return methodInfo.ReflectedType;
- #endif
- }
- }
|