C# Class LoginServer.ServerEnumerator

Exposes the server list details from the XML File.
Inheritance: IEnumerator
Exibir arquivo Open project: polserver/poltools

Public Methods

Method Description
MoveNext ( ) : bool

Called just prior to Current being invoked. If true is returned then the foreach loop will try to get another value from Current. If false is returned then the foreach loop terminates.

Reset ( ) : void

Called when the enumerator needs to be reinitialized.

Private Methods

Method Description
FindNextTextElement ( ) : bool

Advances the XmlTextReader to the next Text element in the XML stream. Returns true if there is more data to be read from the stream, else false.

Method Details

MoveNext() public method

Called just prior to Current being invoked. If true is returned then the foreach loop will try to get another value from Current. If false is returned then the foreach loop terminates.
public MoveNext ( ) : bool
return bool

Reset() public method

Called when the enumerator needs to be reinitialized.
public Reset ( ) : void
return void