예제 #1
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing)
     {
         In.Dispose();
         whiteTexture.Dispose();
     }
 }
예제 #2
0
 public void Dispose()
 {
     if (_ownReader)
     {
         In.Dispose();
     }
     if (_ownWriter)
     {
         Out.Dispose();
     }
 }
예제 #3
0
파일: Client.cs 프로젝트: hnefatl/RBS
        public void Dispose()
        {
            // On disposal, send a disconnect message
            Send(new DisconnectMessage(DisconnectType.Expected));

            Stream.Dispose();
            In.Dispose();
            Out.Dispose();

            Connection.Close();
        }
예제 #4
0
        public void Dispose()
        {
            Out?.Dispose();
            Out = null;

            In?.Dispose();
            In = null;

            Process?.Dispose();
            Process = null;
        }
예제 #5
0
        /// <summary>
        /// Releases any resources used by this instance.
        /// </summary>
        public void Dispose()
        {
            //Check
            if (isDisposed)
            {
                return;
            }

            //Dispose
            ms.Dispose();
            Out.Dispose();
            In.Dispose();
            isDisposed = true;

            //Null
            ms     = null;
            buffer = null;
        }