[Modify] Add it

This commit is contained in:
sta 2018-01-26 17:02:27 +09:00
parent c0dab3e4bb
commit 0a0941ed1d

View File

@ -906,6 +906,12 @@ namespace WebSocketSharp
return BitConverter.ToUInt64 (source.ToHostOrder (sourceOrder), 0); return BitConverter.ToUInt64 (source.ToHostOrder (sourceOrder), 0);
} }
internal static IEnumerable<string> Trim (this IEnumerable<string> source)
{
foreach (var elm in source)
yield return elm.Trim ();
}
internal static string TrimSlashFromEnd (this string value) internal static string TrimSlashFromEnd (this string value)
{ {
var ret = value.TrimEnd ('/'); var ret = value.TrimEnd ('/');