Dispose() public method

public Dispose ( ) : void
return void
示例#1
0
 public override void Dispose()
 {
     frontend.disposed = true;
     System.Runtime.Remoting.RemotingServices.Disconnect(frontend);
     if (editSession != null)
     {
         editSession.Dispose();
     }
     editSession = null;
     base.Dispose();
 }
 protected override void OnDestroyed()
 {
     frontend.disposed = true;
     System.Runtime.Remoting.RemotingServices.Disconnect(frontend);
     if (editSession != null)
     {
         editSession.Dispose();
     }
     editSession = null;
     base.OnDestroyed();
 }