src/Channels/ChannelListContainer.cs
/// <summary>
/// Gets a listed channel from the channel name.
/// </summary>
/// <param name="ChannelName">The channel name to find.</param>
/// <returns>A listed channel.</returns>
Gets a listed channel from the channel name.
Gets a listed channel from the channel name .
public ChannelList GetChannel(string ChannelName)
		{
			for (int x=0;x<channels.Count;x++)
				if (((ChannelList) channels[x]).Name.ToLower()==ChannelName.ToLower())
					return (ChannelList) channels[x];
			throw(new ArgumentOutOfRangeException("ChannelName", ChannelName + " does not exist."));
		}
public ChannelList GetChannel ( string ChannelName ) { for ( int x = 0 ; x < channels . Count ; x ++ ) if ( ( ( ChannelList ) channels [ x ] ) . Name . ToLower ( ) == ChannelName . ToLower ( ) ) return ( ChannelList ) channels [ x ] ; throw ( new ArgumentOutOfRangeException ( " " , ChannelName + " " ) ) ; }
Gets a listed channel from the channel name.
Gets a listed channel from the channel name .
A listed channel.
A listed channel .
ChannelName
string
The channel name to find.
The channel name to find .