Skip to content

Commit ad9fddc

Browse files
authored
Reflection_Engine: StackOverflowException in PropertyFullNameValueGroups fixed (#3482)
2 parents 4d0160c + e59c388 commit ad9fddc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Reflection_Engine/Query/PropertyFullNameValueDictionary.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,14 @@ private static void PropertyFullNameValueDictionary<T>(string fullPath, int nest
102102
if (obj == null)
103103
return;
104104

105-
IList iList = obj as IList;
106105
Type objType = obj.GetType();
107-
108106
if (objType.IsPrimitive())
109107
return;
110108

109+
if (obj is Type || obj is Assembly || obj is Module || obj is Attribute || obj is MemberInfo)
110+
return;
111+
112+
IList iList = obj as IList;
111113
if (iList == null)
112114
{
113115
var props = objType.GetProperties();

0 commit comments

Comments
 (0)