41 references to ReadState
System.Net.Mail (41)
System\Net\Mail\SmtpReplyReaderFactory.cs (41)
32private ReadState _readState = ReadState.Status0; 74if (_readState != ReadState.Done) 104_readState = ReadState.Status0; 127case ReadState.Status0: 139goto case ReadState.Status1; 141_readState = ReadState.Status0; 144case ReadState.Status1: 156goto case ReadState.Status2; 158_readState = ReadState.Status1; 161case ReadState.Status2: 173goto case ReadState.ContinueFlag; 175_readState = ReadState.Status2; 178case ReadState.ContinueFlag: 185goto case ReadState.LastCR; 189goto case ReadState.ContinueCR; 196_readState = ReadState.ContinueFlag; 199case ReadState.ContinueCR: 205goto case ReadState.ContinueLF; 208_readState = ReadState.ContinueCR; 211case ReadState.ContinueLF: 221_readState = ReadState.Status0; 224goto case ReadState.Status0; 226_readState = ReadState.ContinueLF; 229case ReadState.LastCR: 235goto case ReadState.LastLF; 238_readState = ReadState.LastCR; 241case ReadState.LastLF: 249goto case ReadState.Done; 251_readState = ReadState.LastLF; 254case ReadState.Done: 257_readState = ReadState.Done; 270if (count == 0 || _currentReader != caller || _readState == ReadState.Done) 302if (caller != _currentReader || _readState == ReadState.Done) 309System.Diagnostics.Debug.Assert(_readState == ReadState.Status0); 340if (_readState == ReadState.Status0) 352else if (_readState == ReadState.Done) 386if (_parent._currentReader != caller || _parent._readState == ReadState.Done) 394System.Diagnostics.Debug.Assert(_parent._readState == ReadState.Status0); 474if (_parent._readState == ReadState.Status0) 487else if (_parent._readState == ReadState.Done)