Initialized events and delegates wrongly regionerated

If you find any bugs, please post them here.

Initialized events and delegates wrongly regionerated

Postby DonCorleone » Wed Feb 17, 2010 10:35 pm

Hi Guys... this is my first post here. So wanna just tell how much I appreciate your tool... please keep on working! :)

I noticed that delegates and events, that are initialized won't be regionerated. They're just but at the bottom of the class:

Code: Select all
    class MyClass
    {
      #region Fields (2) 

        private double _myDouble;
        private int _myInteger = 1;

      #endregion Fields 

      #region Delegates and Events (1) 

      // Events (1) 

        public event EventHandler MyEvent;

      #endregion Delegates and Events 


        public event EventHandler MyInitializedEvent = delegate { };
        public event Func<bool> MyInitializedFuncEvent = delegate { return true; };
    }


In addition to that, if i regionerate this:

Code: Select all
    class MyClass
    {
        public Func<bool> MyInitializedDelegate = delegate { return true; };
    }


... I get this:

Code: Select all
    class MyClass
    {
      #region Fields (1) 

        public Func<bool> MyInitializedDelegate = delegate { return true;

      #endregion Fields 

}
;
    }


... which is syntactically not correct.

Hope it wasn't reported yet...

Byee ;)
DonCorleone
 
Posts: 1
Joined: Wed Feb 17, 2010 10:26 pm

Re: Initialized events and delegates wrongly regionerated

Postby rauchy » Thu Feb 18, 2010 6:21 am

DonCorleone,

Thanks for reporting this. Can you please open a ticket for this?

Thanks
-- rauchy.
rauchy
Site Admin
 
Posts: 267
Joined: Wed May 09, 2007 2:39 am
Location: Israel


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron