In the report of the FxCop analysis:
CriticalError, Certainty 95, for
"TypesThatOwnDisposableFieldsShouldBeDisposabl e"
{
Target : "Receiver" (IntrospectionTargetType)
Resolution : "Implement IDisposable on 'Receiver' as it instantiates members
of the following IDisposable types: System.Net.Sockets.Socket"
Help :
"http://www.gotdotnet.com/team/fxcop/docs/rules.aspx?version=1.312&&url=/Design/TypesThatOwnDisposableFieldsShouldBeDisposable.htm l" (String)
Category : "Microsoft.Design" (String)
RuleFile : "Design Rules" (String)
Info : "Types that declare disposable members should also implement
IDisposable. If the type does not own any unmanaged resources, do not
implement a finalizer on it."
Status : Active (MessageStatus)
Fix Category : Breaking (FixCategories)
}
But Socket has the Dispose method as protected so I can not invoke it.
Should I or shouldn't I Implement IDisposable in this case???
--
Thanks
Sharon