Schumix.Irc.Channel.MyChannelInfo.FSelect C# (CSharp) Method

FSelect() public method

public FSelect ( IChannelFunctions Name, string Channel ) : bool
Name IChannelFunctions
Channel string
return bool
        public bool FSelect(IChannelFunctions Name, string Channel)
        {
            lock(WriteLock)
            {
                if(ChannelFunction.ContainsKey(Channel.ToLower()))
                {
                    foreach(var comma in ChannelFunction[Channel.ToLower()].Split(SchumixBase.Comma))
                    {
                        if(comma.IsNullOrEmpty())
                            continue;

                        string[] point = comma.Split(SchumixBase.Colon);

                        if(point[0] == Name.ToString().ToLower())
                            return point[1] == SchumixBase.On;
                    }
                }

                return false;
            }
        }

Same methods

MyChannelInfo::FSelect ( IFunctions Name ) : bool
MyChannelInfo::FSelect ( string Name ) : bool
MyChannelInfo::FSelect ( string Name, string Channel ) : bool