A
AlexS
When I implement Dispose pattern in object implementing IDisposable, current
fxcop recommends:
Ensure that Wrapper.Dispose():Void is declared as public and sealed.
However, if I do as it asks, compiler complains that sealed can't be used
because method is not overrideable.
I believe sealed isn't applicable here at all. And this rule shouldn't be
public virtual in this case.
Am I right or do I miss something important?
fxcop recommends:
Ensure that Wrapper.Dispose():Void is declared as public and sealed.
However, if I do as it asks, compiler complains that sealed can't be used
because method is not overrideable.
I believe sealed isn't applicable here at all. And this rule shouldn't be
public virtual in this case.
Am I right or do I miss something important?