Sergei Tulentsev
2007-08-24 12:47:48 UTC
I discovered a bug in WinForms designer and I would like to fix it, but
first I need some help :-)
I see there this code
protected virtual CreateField(field: FieldBuilder) : CodeMemberField
{
// GetFieldInfo() doesn't work
//def fieldDecl = CodeMemberField(field.GetFieldInfo().FieldType,
field.Name);
Debug.Print($"CreateField: from field $field");
//def fieldDecl = CodeMemberField(field.Ast.ty.ToString(), field.Name
);
def fieldDecl = CodeMemberField(field.GetMemType().SystemType,
field.Name); // NRE here
The problem is highlighted. What is this field for and under what
circumstances can it be null?
first I need some help :-)
I see there this code
protected virtual CreateField(field: FieldBuilder) : CodeMemberField
{
// GetFieldInfo() doesn't work
//def fieldDecl = CodeMemberField(field.GetFieldInfo().FieldType,
field.Name);
Debug.Print($"CreateField: from field $field");
//def fieldDecl = CodeMemberField(field.Ast.ty.ToString(), field.Name
);
def fieldDecl = CodeMemberField(field.GetMemType().SystemType,
field.Name); // NRE here
The problem is highlighted. What is this field for and under what
circumstances can it be null?
--
Best wishes,
Sergei Tulentsev
Senior software engineer.
SITRONICS Telecom Solutions, Moscow
http://www.sitels.ru
mob: + 7 916 507 7112
Best wishes,
Sergei Tulentsev
Senior software engineer.
SITRONICS Telecom Solutions, Moscow
http://www.sitels.ru
mob: + 7 916 507 7112