我使用的ReSharper 5的「重新格式化代碼」功能,使用默認設置,並將其轉換這樣的:奇怪的重新格式化代碼在ReSharper的
_deviceInstanceView.Dispatcher.Invoke(DispatcherPriority.Normal, (ThreadStart)delegate()
{
_deviceInstanceView._DeviceInstanceContainer.UpdateLayout();
});
進入這個:
_deviceInstanceView.Dispatcher.Invoke(DispatcherPriority.Normal,
(ThreadStart)
delegate() { _deviceInstanceView._DeviceInstanceContainer.UpdateLayout(); });
有沒有一種方法我可以禁用這種格式?
當我把自己的喜好,但它仍然把大括號下委託 – Robert 2010-09-15 22:21:53