IrcDotNet.IrcUser.GetChannelUsers C# (CSharp) 메소드

GetChannelUsers() 공개 메소드

Gets a collection of all channel users that correspond to the user. Each IrcChannelUser represents a channel of which the user is currently a member.
public GetChannelUsers ( ) : IEnumerable
리턴 IEnumerable
        public IEnumerable<IrcChannelUser> GetChannelUsers()
        {
            // Get each channel user corresponding to this user that is member of any channel.
            foreach (var channel in client.Channels)
            {
                foreach (var channelUser in channel.Users)
                {
                    if (channelUser.User == this)
                        yield return channelUser;
                }
            }
        }