本文整理汇总了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 );
}
}
示例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 );
}
}
示例3: AddParametersToFormat
/// <summary>
/// Overrides <see cref="IrcMessage.AddParametersToFormat"/>.
/// </summary>
protected override void AddParametersToFormat( IrcMessageWriter writer )
{
base.AddParametersToFormat( writer );
writer.AddList( this.Nicks, " " );
}
示例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 );
}
}
示例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 );
}
示例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 );
}
示例7: AddParametersToFormat
/// <summary>
/// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
/// </summary>
protected override void AddParametersToFormat( IrcMessageWriter writer )
{
base.AddParametersToFormat( writer );
writer.AddList( this.Data, " ", false );
}
示例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 );
}
示例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 );
}
示例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 );
}
}
}
示例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 );
}