[nem-en] Question about MType

Sergei Tulentsev sergei.tulentsev at gmail.com
Fri Aug 24 14:47:48 CEST 2007


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?

-- 
Best wishes,
Sergei Tulentsev
Senior software engineer.

SITRONICS Telecom Solutions, Moscow
http://www.sitels.ru
mob: + 7 916 507 7112
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /mailman/pipermail/devel-en/attachments/20070824/cb099ae6/attachment-0001.html


More information about the devel-en mailing list