Skip to content

Commit 2940589

Browse files
committed
add IsGenericDictionaryType and IsGenericEnumerableType property
1 parent 8353ffa commit 2940589

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/SourceGeneration.Reflection/SourceFieldInfo.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ public class SourceFieldInfo(Func<FieldInfo> fieldInfoAccess) : SourceMemberInfo
2020
public bool IsStatic { get; init; }
2121
public bool IsReadOnly { get; init; }
2222
public bool IsConst { get; init; }
23+
24+
public bool IsGenericDictionaryType { get; init; }
25+
public bool IsGenericEnumerableType { get; init; }
26+
2327
public SourceNullableAnnotation NullableAnnotation { get; init; }
2428

2529
public Func<object?, object?> GetValue

src/SourceGeneration.Reflection/SourcePropertyInfo.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ public class SourcePropertyInfo(Func<PropertyInfo> propertyInfoAccess) : SourceM
2727
public bool IsStatic { get; init; }
2828
public bool IsInitOnly { get; init; }
2929
public bool IsIndexer { get; init; }
30+
public bool IsGenericDictionaryType { get; init; }
31+
public bool IsGenericEnumerableType { get; init; }
32+
3033
public SourceParameterInfo[] IndexerParameters { get; init; } = [];
3134

3235
public SourceNullableAnnotation NullableAnnotation { get; init; }

0 commit comments

Comments
 (0)