private static bool ResolveIsPrivateReflectionSupported() { var inst = new ReflectionDetectionClass(); try { var method = typeof(ReflectionDetectionClass).GetTypeInfo().GetDeclaredMethod("Method"); method.Invoke(inst, null); } catch // If we get here, then our platform doesn't support private reflection { return false; } return true; }
private static bool ResolveIsPrivateReflectionSupported() { var inst = new ReflectionDetectionClass(); try { MethodInfo method = typeof(ReflectionDetectionClass).GetTypeInfo().GetDeclaredMethod("Method"); method.Invoke(inst, null); } catch // If we get here, then our platform doesn't support private reflection { return(false); } return(true); }
private static bool ResolveIsPrivateReflectionSupported() { var inst = new ReflectionDetectionClass(); try { var method = typeof(ReflectionDetectionClass).GetTypeInfo().GetDeclaredMethod("Method"); method.Invoke(inst, null); } catch { return false; } return true; }