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 ;)
