Is there a way to tell ReSharper to allow same-line brackets for empty methods and constructors?
For example:
MyConstructor(int x) : BaseConstructor(x) { }
protected virtual void Foo() { }
Should not be converted to:
MyConstructor(int x) : BaseConstructor(x)
{
}
protected virtual void Foo()
{
}
In the first case, I don't need a method body, I simply supply the parent constructor with its arguments.
In the second case, I define an "optional abstract" method by making it virtual that therefore doesn't require a body.