Skip to content

Commit

Permalink
add BindingFlags.FlattenHierachy to try and fix mono issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell authored Jan 12, 2023

Unverified

The email in this signature doesn’t match the committer email.
1 parent b048fd0 commit 1e6a4d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/ParameterUtils.cs
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ public static class ParameterUtils
/// <summary>
/// Default <see cref="BindingFlags"/> to search for matching properties
/// </summary>
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;

/// <summary>
/// Gets an <see cref="IEnumerable{T}"/> of <see cref="KeyValuePair{TKey,TValue}"/>s from properties with a specified <see cref="IProperty"/>-inheriting attribute.

0 comments on commit 1e6a4d6

Please sign in to comment.