Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit ac546af

Browse files
committed
Merge pull request #473 from linquize/codegen-generic-var
WinForms Designer should not modify class fields of generic types outside designer file
2 parents 34f8b5e + 087d79f commit ac546af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AddIns/BackendBindings/CSharpBinding/Project/Src/FormsDesigner/CSharpDesignerGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ static bool AreTypesDifferent(IType oldType, CodeTypeReference newType)
284284
return false;
285285
}
286286

287-
return oldType.ReflectionName != newType.BaseType;
287+
return oldType.GetDefinition().ReflectionName != newType.BaseType;
288288
}
289289

290290
string GenerateField(CodeMemberField newField)

0 commit comments

Comments
 (0)