IrcDotNet.IrcClient.ResetState C# (CSharp) Method

ResetState() protected method

protected ResetState ( ) : void
return void
        protected virtual void ResetState()
        {
            // Reset fully state of client.
            servers = new Collection<IrcServer>();
            isRegistered = false;
            localUser = null;
            serverSupportedFeatures = new Dictionary<string, string>();
            ServerSupportedFeatures = new Collections.ReadOnlyDictionary<string, string>(serverSupportedFeatures);
            channelUserModes = new Collection<char>
            {
                'o',
                'v'
            };
            ChannelUserModes = new ReadOnlyCollection<char>(channelUserModes);
            channelUserModesPrefixes = new Dictionary<char, char>
            {
                {'@', 'o'},
                {'+', 'v'}
            };
            motdBuilder = new StringBuilder();
            networkInformation = new IrcNetworkInfo();
            channels = new Collection<IrcChannel>();
            Channels = new IrcChannelCollection(this, channels);
            users = new Collection<IrcUser>();
            Users = new IrcUserCollection(this, users);
            listedChannels = new List<IrcChannelInfo>();
            listedServerLinks = new List<IrcServerInfo>();
            listedStatsEntries = new List<IrcServerStatisticalEntry>();
        }
IrcClient