当前位置: 首页>>代码示例>>C#>>正文


C# IrcMessageWriter.AddList方法代码示例

本文整理汇总了C#中MetaBuilders.Irc.Messages.IrcMessageWriter.AddList方法的典型用法代码示例。如果您正苦于以下问题:C# IrcMessageWriter.AddList方法的具体用法?C# IrcMessageWriter.AddList怎么用?C# IrcMessageWriter.AddList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MetaBuilders.Irc.Messages.IrcMessageWriter的用法示例。


在下文中一共展示了IrcMessageWriter.AddList方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddParametersToFormat

 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>.
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     if ( Channels.Count != 0 )
     {
         writer.AddList( Channels, ",", true );
     }
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:11,代码来源:NamesMessage.cs

示例2: AddParametersToFormat

 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.Nick );
     if ( this.Channels.Count != 0 )
     {
         writer.AddList( this.Channels, " ", false );
     }
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:12,代码来源:WhoIsChannelsReplyMessage.cs

示例3: AddParametersToFormat

 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>.
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddList( this.Nicks, " " );
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:8,代码来源:UserHostMessage.cs

示例4: AddParametersToFormat

 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>.
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddList( Channels, ",", true );
     if ( Reason.Length != 0 )
     {
         writer.AddParameter( Reason );
     }
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:12,代码来源:PartMessage.cs

示例5: AddParametersToFormat

 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>.
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.Channel );
     writer.AddList( this.Targets, ",", false );
     writer.AddParameter( this.Text, true );
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:10,代码来源:WhisperMessage.cs

示例6: AddParametersToFormat

        /// <summary>
        /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
        /// </summary>
        protected override void AddParametersToFormat( IrcMessageWriter writer )
        {
            base.AddParametersToFormat( writer );

            StringCollection paramsToString = new StringCollection();
            foreach ( String name in this.SupportedItems.Keys )
            {
                String value = this.SupportedItems[ name ];
                if ( value.Length != 0 )
                {
                    paramsToString.Add( name + "=" + this.SupportedItems[ name ] );
                }
                else
                {
                    paramsToString.Add( name );
                }
            }
            writer.AddList( paramsToString, " ", false );
            writer.AddParameter( areSupported );
        }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:23,代码来源:SupportMessage.cs

示例7: AddParametersToFormat

 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddList( this.Data, " ", false );
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:8,代码来源:GenericErrorMessage.cs

示例8: AddParametersToFormat

        /// <summary>
        /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
        /// </summary>
        protected override void AddParametersToFormat( IrcMessageWriter writer )
        {
            base.AddParametersToFormat( writer );
            StringCollection allNicks = new StringCollection();
            foreach ( String rNick in RemovedNicks )
            {
                allNicks.Add( "-" + rNick );
            }
            foreach ( String aNick in AddedNicks )
            {
                allNicks.Add( aNick );
            }

            writer.AddList( allNicks, ",", true );
        }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:18,代码来源:AcceptListEditorMessage.cs

示例9: AddParametersToFormat

 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     if ( this.IsIrcxClientMode )
     {
         writer.AddParameter( "1" );
     }
     else
     {
         writer.AddParameter( "0" );
     }
     writer.AddParameter( this.Version );
     writer.AddList( this.AuthenticationPackages, ",", false );
     writer.AddParameter( this.MaximumMessageLength.ToString( CultureInfo.InvariantCulture ) );
     writer.AddParameter( this.Tokens );
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:19,代码来源:IrcxReplyMessage.cs

示例10: AddParametersToFormat

        /// <summary>
        /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>.
        /// </summary>
        protected override void AddParametersToFormat( IrcMessageWriter writer )
        {
            base.AddParametersToFormat( writer );

            StringCollection options = new StringCollection();
            if ( MaxUsers >= 0 )
            {
                options.Add( "<" + MaxUsers.ToString( CultureInfo.InvariantCulture ) );
            }
            if ( MinUsers >= 0 )
            {
                options.Add( ">" + MinUsers.ToString( CultureInfo.InvariantCulture ) );
            }
            if ( YoungerThan >= 0 )
            {
                options.Add( "C<" + YoungerThan.ToString( CultureInfo.InvariantCulture ) );
            }
            if ( OlderThan >= 0 )
            {
                options.Add( "C>" + OlderThan.ToString( CultureInfo.InvariantCulture ) );
            }
            if ( !string.IsNullOrEmpty( MatchMask ) )
            {
                options.Add( "*" + MatchMask + "*" );
            }
            if ( !String.IsNullOrEmpty( NotMatchMask ) )
            {
                options.Add( "!*" + NotMatchMask + "*" );
            }
            if ( TopicOlderThan >= 0 )
            {
                options.Add( "T>" + TopicOlderThan.ToString( CultureInfo.InvariantCulture ) );
            }
            if ( TopicYoungerThan >= 0 )
            {
                options.Add( "T<" + TopicYoungerThan.ToString( CultureInfo.InvariantCulture ) );
            }

            if ( options.Count > 0 )
            {
                writer.AddList( options, ",", false );
            }
            else if ( Channels.Count != 0 )
            {
                writer.AddList( Channels, ",", false );
                if ( Server.Length != 0 )
                {
                    writer.AddParameter( Server );
                }
            }
        }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:54,代码来源:ListMessage.cs

示例11: AddParametersToFormat

 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>.
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.Server );
     writer.AddList( this.Masks, ",", true );
 }
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:9,代码来源:WhoIsMessage.cs


注:本文中的MetaBuilders.Irc.Messages.IrcMessageWriter.AddList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。