IrcStatement TryParse Method ( Byte , Int32 , Int32, IrcStatement , IrcStatementParseResult )NetIRC2 IRC Client Library for .NET
Tries to read a buffer and parse out an IRC statement. Additionally, on failure, the reason for failure is returned.

Namespace: NetIrc2.Parsing
Assembly: NetIrc2 (in NetIrc2.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static bool TryParse(
	byte[] buffer,
	ref int offset,
	int count,
	out IrcStatement statement,
	out IrcStatementParseResult parseResult
)

Parameters

buffer
Type:  OnlineSystem Byte 
The buffer to read from.
offset
Type: OnlineSystem Int32 
The offset to begin reading. The parser may advance this, even if parsing fails.
count
Type: OnlineSystem Int32
The maximum number of bytes to read.
statement
Type: NetIrc2.Parsing IrcStatement 
The statement, if parsing succeeds, or null.
parseResult
Type: NetIrc2.Parsing IrcStatementParseResult 
The result of parsing. On failure, this is the reason for the failure.

Return Value

true if parsing succeeded.
See Also