From 1e6a4d6db4370caaf8e8542c0519f88b5ec56db6 Mon Sep 17 00:00:00 2001 From: Albie Date: Thu, 12 Jan 2023 18:04:33 +0000 Subject: [PATCH] add BindingFlags.FlattenHierachy to try and fix mono issue --- src/Utils/ParameterUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils/ParameterUtils.cs b/src/Utils/ParameterUtils.cs index 0c1e96f..088fdd9 100644 --- a/src/Utils/ParameterUtils.cs +++ b/src/Utils/ParameterUtils.cs @@ -19,7 +19,7 @@ public static class ParameterUtils /// /// Default to search for matching properties /// - private const BindingFlags DefaultFlags = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static; + private const BindingFlags DefaultFlags = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static | BindingFlags.FlattenHierarchy; /// /// Gets an of s from properties with a specified -inheriting attribute.