This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_client = new TcpClient(_serveraddress, _port); | |
var certcoll = new X509Certificate2Collection {_certificate}; | |
_sslStream = new SslStream(_client.GetStream(), false, ValidateCertificate, null); | |
_sslStream.AuthenticateAsClient("irc.rizon.net", certcoll, SslProtocols.Default, false); | |
_reader = new StreamReader(_sslStream); | |
_writer = new StreamWriter(_sslStream) {NewLine = "\r\n", AutoFlush = true}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var match in from r in entities.Regexes | |
select new System.Text.RegularExpressions.Regex(r.Expression) | |
into regex | |
from Match match in regex.Matches(source) | |
where !entities.Links.Any(l => l.Link1 == match.Groups[1].Value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class Regex | |
{ | |
public Regex() | |
{ | |
this = new System.Text.RegularExpressions.Regex(Pattern); | |
} | |
public string Pattern { get; set; } | |
} |