diff --git a/Example/bin/Debug/example.exe b/Example/bin/Debug/example.exe index e8756918..d34f8f9d 100755 Binary files a/Example/bin/Debug/example.exe and b/Example/bin/Debug/example.exe differ diff --git a/Example/bin/Debug/websocket-sharp.dll b/Example/bin/Debug/websocket-sharp.dll index f2c3f003..dfa3bc61 100755 Binary files a/Example/bin/Debug/websocket-sharp.dll and b/Example/bin/Debug/websocket-sharp.dll differ diff --git a/Example/bin/Debug_Ubuntu/example.exe b/Example/bin/Debug_Ubuntu/example.exe index 836ea181..91c4c081 100755 Binary files a/Example/bin/Debug_Ubuntu/example.exe and b/Example/bin/Debug_Ubuntu/example.exe differ diff --git a/Example/bin/Debug_Ubuntu/websocket-sharp.dll b/Example/bin/Debug_Ubuntu/websocket-sharp.dll index af86fa4b..4b8ecf2c 100755 Binary files a/Example/bin/Debug_Ubuntu/websocket-sharp.dll and b/Example/bin/Debug_Ubuntu/websocket-sharp.dll differ diff --git a/Example/bin/Release/example.exe b/Example/bin/Release/example.exe index 36a5fb4b..18cbc680 100755 Binary files a/Example/bin/Release/example.exe and b/Example/bin/Release/example.exe differ diff --git a/Example/bin/Release/websocket-sharp.dll b/Example/bin/Release/websocket-sharp.dll index 643eb71b..8a2dc0c8 100755 Binary files a/Example/bin/Release/websocket-sharp.dll and b/Example/bin/Release/websocket-sharp.dll differ diff --git a/Example/bin/Release_Ubuntu/example.exe b/Example/bin/Release_Ubuntu/example.exe index 26e4d422..93cb1868 100755 Binary files a/Example/bin/Release_Ubuntu/example.exe and b/Example/bin/Release_Ubuntu/example.exe differ diff --git a/Example/bin/Release_Ubuntu/websocket-sharp.dll b/Example/bin/Release_Ubuntu/websocket-sharp.dll index 5a3f9686..c318c3a8 100755 Binary files a/Example/bin/Release_Ubuntu/websocket-sharp.dll and b/Example/bin/Release_Ubuntu/websocket-sharp.dll differ diff --git a/Example1/bin/Debug/example1.exe b/Example1/bin/Debug/example1.exe index ba7fc6d9..7ca94251 100755 Binary files a/Example1/bin/Debug/example1.exe and b/Example1/bin/Debug/example1.exe differ diff --git a/Example1/bin/Debug/websocket-sharp.dll b/Example1/bin/Debug/websocket-sharp.dll index f2c3f003..dfa3bc61 100755 Binary files a/Example1/bin/Debug/websocket-sharp.dll and b/Example1/bin/Debug/websocket-sharp.dll differ diff --git a/Example1/bin/Debug_Ubuntu/example1.exe b/Example1/bin/Debug_Ubuntu/example1.exe index 5d0f28e2..2a0669bf 100755 Binary files a/Example1/bin/Debug_Ubuntu/example1.exe and b/Example1/bin/Debug_Ubuntu/example1.exe differ diff --git a/Example1/bin/Debug_Ubuntu/websocket-sharp.dll b/Example1/bin/Debug_Ubuntu/websocket-sharp.dll index af86fa4b..4b8ecf2c 100755 Binary files a/Example1/bin/Debug_Ubuntu/websocket-sharp.dll and b/Example1/bin/Debug_Ubuntu/websocket-sharp.dll differ diff --git a/Example1/bin/Release/example1.exe b/Example1/bin/Release/example1.exe index ed0bd74a..48a3d53e 100755 Binary files a/Example1/bin/Release/example1.exe and b/Example1/bin/Release/example1.exe differ diff --git a/Example1/bin/Release/websocket-sharp.dll b/Example1/bin/Release/websocket-sharp.dll index 643eb71b..8a2dc0c8 100755 Binary files a/Example1/bin/Release/websocket-sharp.dll and b/Example1/bin/Release/websocket-sharp.dll differ diff --git a/Example1/bin/Release_Ubuntu/example1.exe b/Example1/bin/Release_Ubuntu/example1.exe index 69260fb5..afdd0a03 100755 Binary files a/Example1/bin/Release_Ubuntu/example1.exe and b/Example1/bin/Release_Ubuntu/example1.exe differ diff --git a/Example1/bin/Release_Ubuntu/websocket-sharp.dll b/Example1/bin/Release_Ubuntu/websocket-sharp.dll index 5a3f9686..c318c3a8 100755 Binary files a/Example1/bin/Release_Ubuntu/websocket-sharp.dll and b/Example1/bin/Release_Ubuntu/websocket-sharp.dll differ diff --git a/Example2/bin/Debug/example2.exe b/Example2/bin/Debug/example2.exe index 3b2bbc8f..666af267 100755 Binary files a/Example2/bin/Debug/example2.exe and b/Example2/bin/Debug/example2.exe differ diff --git a/Example2/bin/Debug/websocket-sharp.dll b/Example2/bin/Debug/websocket-sharp.dll index f2c3f003..dfa3bc61 100755 Binary files a/Example2/bin/Debug/websocket-sharp.dll and b/Example2/bin/Debug/websocket-sharp.dll differ diff --git a/Example2/bin/Debug_Ubuntu/example2.exe b/Example2/bin/Debug_Ubuntu/example2.exe index 04aae284..1a590498 100755 Binary files a/Example2/bin/Debug_Ubuntu/example2.exe and b/Example2/bin/Debug_Ubuntu/example2.exe differ diff --git a/Example2/bin/Debug_Ubuntu/websocket-sharp.dll b/Example2/bin/Debug_Ubuntu/websocket-sharp.dll index af86fa4b..4b8ecf2c 100755 Binary files a/Example2/bin/Debug_Ubuntu/websocket-sharp.dll and b/Example2/bin/Debug_Ubuntu/websocket-sharp.dll differ diff --git a/Example2/bin/Release/example2.exe b/Example2/bin/Release/example2.exe index c0e8a684..fc123ca5 100755 Binary files a/Example2/bin/Release/example2.exe and b/Example2/bin/Release/example2.exe differ diff --git a/Example2/bin/Release/websocket-sharp.dll b/Example2/bin/Release/websocket-sharp.dll index 643eb71b..8a2dc0c8 100755 Binary files a/Example2/bin/Release/websocket-sharp.dll and b/Example2/bin/Release/websocket-sharp.dll differ diff --git a/Example2/bin/Release_Ubuntu/example2.exe b/Example2/bin/Release_Ubuntu/example2.exe index 35a8d0c0..66647dbd 100755 Binary files a/Example2/bin/Release_Ubuntu/example2.exe and b/Example2/bin/Release_Ubuntu/example2.exe differ diff --git a/Example2/bin/Release_Ubuntu/websocket-sharp.dll b/Example2/bin/Release_Ubuntu/websocket-sharp.dll index 5a3f9686..c318c3a8 100755 Binary files a/Example2/bin/Release_Ubuntu/websocket-sharp.dll and b/Example2/bin/Release_Ubuntu/websocket-sharp.dll differ diff --git a/Example3/bin/Debug/Example3.exe b/Example3/bin/Debug/Example3.exe index 28a49480..c60d3eaa 100755 Binary files a/Example3/bin/Debug/Example3.exe and b/Example3/bin/Debug/Example3.exe differ diff --git a/Example3/bin/Debug/websocket-sharp.dll b/Example3/bin/Debug/websocket-sharp.dll index f2c3f003..dfa3bc61 100755 Binary files a/Example3/bin/Debug/websocket-sharp.dll and b/Example3/bin/Debug/websocket-sharp.dll differ diff --git a/Example3/bin/Debug_Ubuntu/Example3.exe b/Example3/bin/Debug_Ubuntu/Example3.exe index 7428ea68..56b265e8 100755 Binary files a/Example3/bin/Debug_Ubuntu/Example3.exe and b/Example3/bin/Debug_Ubuntu/Example3.exe differ diff --git a/Example3/bin/Debug_Ubuntu/websocket-sharp.dll b/Example3/bin/Debug_Ubuntu/websocket-sharp.dll index af86fa4b..4b8ecf2c 100755 Binary files a/Example3/bin/Debug_Ubuntu/websocket-sharp.dll and b/Example3/bin/Debug_Ubuntu/websocket-sharp.dll differ diff --git a/Example3/bin/Release/Example3.exe b/Example3/bin/Release/Example3.exe index a77649df..26292ee2 100755 Binary files a/Example3/bin/Release/Example3.exe and b/Example3/bin/Release/Example3.exe differ diff --git a/Example3/bin/Release/websocket-sharp.dll b/Example3/bin/Release/websocket-sharp.dll index 643eb71b..8a2dc0c8 100755 Binary files a/Example3/bin/Release/websocket-sharp.dll and b/Example3/bin/Release/websocket-sharp.dll differ diff --git a/Example3/bin/Release_Ubuntu/Example3.exe b/Example3/bin/Release_Ubuntu/Example3.exe index 40100770..9c56b19e 100755 Binary files a/Example3/bin/Release_Ubuntu/Example3.exe and b/Example3/bin/Release_Ubuntu/Example3.exe differ diff --git a/Example3/bin/Release_Ubuntu/websocket-sharp.dll b/Example3/bin/Release_Ubuntu/websocket-sharp.dll index 5a3f9686..c318c3a8 100755 Binary files a/Example3/bin/Release_Ubuntu/websocket-sharp.dll and b/Example3/bin/Release_Ubuntu/websocket-sharp.dll differ diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index 6f8bf77b..2fc0b1a6 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -236,6 +236,52 @@ namespace WebSocketSharp { : null; } + // + // Determines whether the specified object is . + // + // + // true if is ; otherwise, false. + // + // + // An object to test. + // + // + // The type of parameter. + // + internal static bool IsNull(this T obj) + where T : class + { + return obj == null; + } + + // + // Determines whether the specified object is . + // And invokes the specified delegate if the specified object is . + // + // + // true if the parameter is ; otherwise, false. + // + // + // A class to test. + // + // + // An delegate that contains the method(s) called if the is . + // + // + // The type of the parameter. + // + internal static bool IsNullDo(this T obj, Action act) + where T : class + { + if (obj == null) + { + act(); + return true; + } + + return false; + } + internal static bool IsText(this string value) { int len = value.Length; @@ -374,7 +420,7 @@ namespace WebSocketSharp { /// public static TcpListenerWebSocketContext AcceptWebSocket(this TcpListener listener, bool secure) { - if (listener.IsNull()) + if (listener == null) throw new ArgumentNullException("listener"); var client = listener.AcceptTcpClient(); @@ -398,7 +444,7 @@ namespace WebSocketSharp { /// public static void AcceptWebSocketAsync(this TcpListener listener, bool secure, Action completed) { - if (listener.IsNull()) + if (listener == null) throw new ArgumentNullException("listener"); AsyncCallback callback = (ar) => @@ -416,21 +462,21 @@ namespace WebSocketSharp { /// in the specified array of . /// /// - /// true if contains any of ; otherwise, false. + /// true if contains any of ; otherwise, false. /// - /// + /// /// A to test. /// /// /// An array of that contains characters to find. /// - public static bool Contains(this string str, params char[] chars) + public static bool Contains(this string value, params char[] chars) { - return str.IsNullOrEmpty() - ? false - : chars.Length == 0 - ? true - : str.IndexOfAny(chars) != -1; + return chars.Length == 0 + ? true + : value == null || value.Length == 0 + ? false + : value.IndexOfAny(chars) != -1; } /// @@ -448,7 +494,7 @@ namespace WebSocketSharp { public static void Emit( this EventHandler eventHandler, object sender, EventArgs e) { - if (!eventHandler.IsNull()) + if (eventHandler != null) eventHandler(sender, e); } @@ -471,7 +517,7 @@ namespace WebSocketSharp { this EventHandler eventHandler, object sender, TEventArgs e) where TEventArgs : EventArgs { - if (!eventHandler.IsNull()) + if (eventHandler != null) eventHandler(sender, e); } @@ -519,9 +565,9 @@ namespace WebSocketSharp { /// public static bool Exists(this NameValueCollection collection, string name) { - return collection.IsNull() + return collection == null ? false - : !collection[name].IsNull(); + : collection[name] != null; } /// @@ -541,11 +587,11 @@ namespace WebSocketSharp { /// public static bool Exists(this NameValueCollection collection, string name, string value) { - if (collection.IsNull()) + if (collection == null) return false; var values = collection[name]; - if (values.IsNull()) + if (values == null) return false; foreach (string v in values.Split(',')) @@ -566,7 +612,7 @@ namespace WebSocketSharp { /// public static string GetAbsolutePath(this Uri uri) { - if (uri.IsNull()) + if (uri == null) return null; if (uri.IsAbsoluteUri) @@ -599,7 +645,7 @@ namespace WebSocketSharp { public static CookieCollection GetCookies(this NameValueCollection headers, bool response) { var name = response ? "Set-Cookie" : "Cookie"; - if (headers.IsNull() || !headers.Exists(name)) + if (headers == null || !headers.Exists(name)) return new CookieCollection(); return CookieCollection.Parse(headers[name], response); @@ -620,20 +666,22 @@ namespace WebSocketSharp { } /// - /// Gets the name from the specified that contains a pair of name and value are separated by a separator string. + /// Gets the name from the specified that contains a pair of name and value + /// separated by a separator string. /// /// /// A that contains the name if any; otherwise, null. /// /// - /// A that contains a pair of name and value are separated by a separator string. + /// A that contains a pair of name and value separated by a separator string. /// /// /// A that contains a separator string. /// public static string GetName(this string nameAndValue, string separator) { - return !nameAndValue.IsNullOrEmpty() && !separator.IsNullOrEmpty() + return (nameAndValue != null && nameAndValue.Length != 0) && + (separator != null && separator.Length != 0) ? nameAndValue.GetNameInternal(separator) : null; } @@ -654,7 +702,7 @@ namespace WebSocketSharp { { var name = nameAndValue.GetName(separator); var value = nameAndValue.GetValue(separator); - return !name.IsNull() + return name != null ? new KeyValuePair(name, value) : new KeyValuePair(null, null); } @@ -724,20 +772,22 @@ namespace WebSocketSharp { } /// - /// Gets the value from the specified that contains a pair of name and value are separated by a separator string. + /// Gets the value from the specified that contains a pair of name and value + /// separated by a separator string. /// /// /// A that contains the value if any; otherwise, null. /// /// - /// A that contains a pair of name and value are separated by a separator string. + /// A that contains a pair of name and value separated by a separator string. /// /// /// A that contains a separator string. /// public static string GetValue(this string nameAndValue, string separator) { - return !nameAndValue.IsNullOrEmpty() && !separator.IsNullOrEmpty() + return (nameAndValue != null && nameAndValue.Length != 0) && + (separator != null && separator.Length != 0) ? nameAndValue.GetValueInternal(separator) : null; } @@ -794,19 +844,19 @@ namespace WebSocketSharp { /// Determines whether the specified is enclosed in the specified . /// /// - /// true if is enclosed in ; otherwise, false. + /// true if is enclosed in ; otherwise, false. /// - /// + /// /// A to test. /// /// /// A that contains character to find. /// - public static bool IsEnclosedIn(this string str, char c) + public static bool IsEnclosedIn(this string value, char c) { - return str.IsNullOrEmpty() + return value == null || value.Length == 0 ? false - : str[0] == c && str[str.Length - 1] == c; + : value[0] == c && value[value.Length - 1] == c; } /// @@ -839,7 +889,7 @@ namespace WebSocketSharp { /// public static bool IsLocal(this System.Net.IPAddress address) { - if (address.IsNull()) + if (address == null) throw new ArgumentNullException("address"); if (System.Net.IPAddress.IsLoopback(address)) @@ -854,52 +904,6 @@ namespace WebSocketSharp { return false; } - /// - /// Determines whether the specified object is . - /// - /// - /// true if is ; otherwise, false. - /// - /// - /// An object to test. - /// - /// - /// The type of parameter. - /// - public static bool IsNull(this T obj) - where T : class - { - return obj == null; - } - - /// - /// Determines whether the specified object is . - /// And invokes the specified delegate if the specified object is . - /// - /// - /// true if the parameter is ; otherwise, false. - /// - /// - /// A class to test. - /// - /// - /// An delegate that contains the method(s) called if the is . - /// - /// - /// The type of the parameter. - /// - public static bool IsNullDo(this T obj, Action act) - where T : class - { - if (obj.IsNull()) - { - act(); - return true; - } - - return false; - } - /// /// Determines whether the specified is or empty. /// @@ -911,7 +915,7 @@ namespace WebSocketSharp { /// public static bool IsNullOrEmpty(this string value) { - return value.IsNull() || value.IsEmpty(); + return value == null || value.Length == 0; } /// @@ -925,7 +929,7 @@ namespace WebSocketSharp { /// public static bool IsPredefinedScheme(this string scheme) { - if (scheme.IsNull() && scheme.Length < 2) + if (scheme == null && scheme.Length < 2) return false; char c = scheme[0]; @@ -986,13 +990,13 @@ namespace WebSocketSharp { /// public static bool IsUpgradeTo(this HttpListenerRequest request, string protocol) { - if (request.IsNull()) + if (request == null) throw new ArgumentNullException("request"); - if (protocol.IsNull()) + if (protocol == null) throw new ArgumentNullException("protocol"); - if (protocol.IsEmpty()) + if (protocol.Length == 0) throw new ArgumentException("Must not be empty.", "protocol"); if (!request.Headers.Exists("Upgrade", protocol)) @@ -1018,7 +1022,7 @@ namespace WebSocketSharp { /// public static bool IsValidAbsolutePath(this string absPath, out string message) { - if (absPath.IsNullOrEmpty()) + if (absPath == null || absPath.Length == 0) { message = "Must not be null or empty."; return false; @@ -1053,7 +1057,7 @@ namespace WebSocketSharp { /// public static bool MaybeUri(this string uriString) { - if (uriString.IsNullOrEmpty()) + if (uriString == null || uriString.Length == 0) return false; int p = uriString.IndexOf(':'); @@ -1102,7 +1106,7 @@ namespace WebSocketSharp { /// public static byte[] ReadBytes(this Stream stream, int length) { - if (stream.IsNull() || length <= 0) + if (stream == null || length <= 0) return new byte[]{}; var buffer = new byte[length]; @@ -1149,7 +1153,7 @@ namespace WebSocketSharp { /// public static byte[] ReadBytes(this Stream stream, long length, int bufferLength) { - if (stream.IsNull() || length <= 0) + if (stream == null || length <= 0) return new byte[]{}; if (bufferLength <= 0) @@ -1205,7 +1209,7 @@ namespace WebSocketSharp { /// public static T[] SubArray(this T[] array, int startIndex, int length) { - if (array.IsNull() || array.Length == 0) + if (array == null || array.Length == 0) return new T[]{}; if (startIndex < 0 || length <= 0) @@ -1234,7 +1238,7 @@ namespace WebSocketSharp { /// public static void Times(this int n, Action act) { - if (n > 0 && !act.IsNull()) + if (n > 0 && act != null) ((ulong)n).times(act); } @@ -1249,7 +1253,7 @@ namespace WebSocketSharp { /// public static void Times(this long n, Action act) { - if (n > 0 && !act.IsNull()) + if (n > 0 && act != null) ((ulong)n).times(act); } @@ -1264,7 +1268,7 @@ namespace WebSocketSharp { /// public static void Times(this uint n, Action act) { - if (n > 0 && !act.IsNull()) + if (n > 0 && act != null) ((ulong)n).times(act); } @@ -1279,7 +1283,7 @@ namespace WebSocketSharp { /// public static void Times(this ulong n, Action act) { - if (n > 0 && !act.IsNull()) + if (n > 0 && act != null) n.times(act); } @@ -1295,7 +1299,7 @@ namespace WebSocketSharp { /// public static void Times(this int n, Action act) { - if (n > 0 && !act.IsNull()) + if (n > 0 && act != null) for (int i = 0; i < n; i++) act(i); } @@ -1312,7 +1316,7 @@ namespace WebSocketSharp { /// public static void Times(this long n, Action act) { - if (n > 0 && !act.IsNull()) + if (n > 0 && act != null) for (long i = 0; i < n; i++) act(i); } @@ -1329,7 +1333,7 @@ namespace WebSocketSharp { /// public static void Times(this uint n, Action act) { - if (n > 0 && !act.IsNull()) + if (n > 0 && act != null) for (uint i = 0; i < n; i++) act(i); } @@ -1346,7 +1350,7 @@ namespace WebSocketSharp { /// public static void Times(this ulong n, Action act) { - if (n > 0 && !act.IsNull()) + if (n > 0 && act != null) for (ulong i = 0; i < n; i++) act(i); } @@ -1376,7 +1380,7 @@ namespace WebSocketSharp { public static T To(this byte[] src, ByteOrder srcOrder) where T : struct { - if (src.IsNull()) + if (src == null) throw new ArgumentNullException("src"); if (src.Length == 0) @@ -1504,7 +1508,7 @@ namespace WebSocketSharp { /// public static byte[] ToHostOrder(this byte[] src, ByteOrder srcOrder) { - if (src.IsNull()) + if (src == null) throw new ArgumentNullException("src"); return src.Length == 0 || srcOrder.IsHostOrder() @@ -1534,14 +1538,14 @@ namespace WebSocketSharp { /// public static string ToString(this T[] array, string separator) { - if (array.IsNull()) + if (array == null) throw new ArgumentNullException("array"); var len = array.Length; if (len == 0) return String.Empty; - if (separator.IsNull()) + if (separator == null) separator = String.Empty; var sb = new StringBuilder(); @@ -1565,7 +1569,7 @@ namespace WebSocketSharp { /// public static Uri ToUri(this string uriString) { - return uriString.IsNullOrEmpty() + return uriString == null || uriString.Length == 0 ? null : uriString.MaybeUri() ? new Uri(uriString) @@ -1592,11 +1596,11 @@ namespace WebSocketSharp { /// public static bool TryCreateWebSocketUri(this string uriString, out Uri result, out string message) { - if (uriString.IsNull()) + if (uriString == null) throw new ArgumentNullException("uriString"); result = null; - if (uriString.IsEmpty()) + if (uriString.Length == 0) { message = "Must not be empty."; return false; @@ -1617,7 +1621,7 @@ namespace WebSocketSharp { } var fragment = uri.Fragment; - if (!String.IsNullOrEmpty(fragment)) + if (fragment != null && fragment.Length != 0) { message = "Must not contain the fragment component: " + uriString; return false; @@ -1661,7 +1665,7 @@ namespace WebSocketSharp { /// public static string UrlDecode(this string s) { - return s.IsNullOrEmpty() + return s == null || s.Length == 0 ? s : HttpUtility.UrlDecode(s); } @@ -1678,7 +1682,7 @@ namespace WebSocketSharp { /// public static string UrlEncode(this string s) { - return s.IsNullOrEmpty() + return s == null || s.Length == 0 ? s : HttpUtility.UrlEncode(s); } @@ -1697,10 +1701,10 @@ namespace WebSocketSharp { /// public static void WriteContent(this HttpListenerResponse response, byte[] content) { - if (response.IsNull()) + if (response == null) throw new ArgumentNullException("response"); - if (content.IsNull() || content.Length == 0) + if (content == null || content.Length == 0) return; var output = response.OutputStream; diff --git a/websocket-sharp/bin/Debug/websocket-sharp.dll b/websocket-sharp/bin/Debug/websocket-sharp.dll index f2c3f003..dfa3bc61 100755 Binary files a/websocket-sharp/bin/Debug/websocket-sharp.dll and b/websocket-sharp/bin/Debug/websocket-sharp.dll differ diff --git a/websocket-sharp/bin/Debug_Ubuntu/websocket-sharp.dll b/websocket-sharp/bin/Debug_Ubuntu/websocket-sharp.dll index af86fa4b..4b8ecf2c 100755 Binary files a/websocket-sharp/bin/Debug_Ubuntu/websocket-sharp.dll and b/websocket-sharp/bin/Debug_Ubuntu/websocket-sharp.dll differ diff --git a/websocket-sharp/bin/Release/websocket-sharp.dll b/websocket-sharp/bin/Release/websocket-sharp.dll index 643eb71b..8a2dc0c8 100755 Binary files a/websocket-sharp/bin/Release/websocket-sharp.dll and b/websocket-sharp/bin/Release/websocket-sharp.dll differ diff --git a/websocket-sharp/bin/Release_Ubuntu/websocket-sharp.dll b/websocket-sharp/bin/Release_Ubuntu/websocket-sharp.dll index c112d413..c318c3a8 100755 Binary files a/websocket-sharp/bin/Release_Ubuntu/websocket-sharp.dll and b/websocket-sharp/bin/Release_Ubuntu/websocket-sharp.dll differ diff --git a/websocket-sharp/bin/Release_Ubuntu/websocket-sharp.xml b/websocket-sharp/bin/Release_Ubuntu/websocket-sharp.xml index 22c0bc82..ac79eaa0 100644 --- a/websocket-sharp/bin/Release_Ubuntu/websocket-sharp.xml +++ b/websocket-sharp/bin/Release_Ubuntu/websocket-sharp.xml @@ -49,9 +49,9 @@ in the specified array of . - true if contains any of ; otherwise, false. + true if contains any of ; otherwise, false. - + A to test. @@ -180,13 +180,14 @@ - Gets the name from the specified that contains a pair of name and value are separated by a separator string. + Gets the name from the specified that contains a pair of name and value + separated by a separator string. A that contains the name if any; otherwise, null. - A that contains a pair of name and value are separated by a separator string. + A that contains a pair of name and value separated by a separator string. A that contains a separator string. @@ -219,13 +220,14 @@ - Gets the value from the specified that contains a pair of name and value are separated by a separator string. + Gets the value from the specified that contains a pair of name and value + separated by a separator string. A that contains the value if any; otherwise, null. - A that contains a pair of name and value are separated by a separator string. + A that contains a pair of name and value separated by a separator string. A that contains a separator string. @@ -266,9 +268,9 @@ Determines whether the specified is enclosed in the specified . - true if is enclosed in ; otherwise, false. + true if is enclosed in ; otherwise, false. - + A to test. @@ -300,38 +302,6 @@ is . - - - Determines whether the specified object is . - - - true if is ; otherwise, false. - - - An object to test. - - - The type of parameter. - - - - - Determines whether the specified object is . - And invokes the specified delegate if the specified object is . - - - true if the parameter is ; otherwise, false. - - - A class to test. - - - An delegate that contains the method(s) called if the is . - - - The type of the parameter. - - Determines whether the specified is or empty. diff --git a/websocket-sharp/doc/html/WebSocketSharp/Ext.html b/websocket-sharp/doc/html/WebSocketSharp/Ext.html index 148c8ab7..9167bd04 100644 --- a/websocket-sharp/doc/html/WebSocketSharp/Ext.html +++ b/websocket-sharp/doc/html/WebSocketSharp/Ext.html @@ -362,7 +362,8 @@ GetName (this string, string) : string
- Gets the name from the specified string that contains a pair of name and value are separated by a separator string. + Gets the name from the specified string that contains a pair of name and value + separated by a separator string.
@@ -395,7 +396,8 @@ GetValue (this string, string) : string
- Gets the value from the specified string that contains a pair of name and value are separated by a separator string. + Gets the value from the specified string that contains a pair of name and value + separated by a separator string.
@@ -452,29 +454,6 @@ IsLocal (this System.Net.IPAddress) : bool
Determines whether the specified System.Net.IPAddress represents a local IP address. -
- - - -
static
- - - - IsNull<T> - (this T) : bool
- Determines whether the specified object is null. -
- - - -
static
- - - - IsNullDo<T> - (this T, Action) : bool
- Determines whether the specified object is null. - And invokes the specified Action delegate if the specified object is null.
@@ -901,12 +880,12 @@ in the specified array of char.

Syntax

-
public static bool Contains (this string str, params char[] chars)
+
public static bool Contains (this string value, params char[] chars)

Parameters

- str + value
A string to test. @@ -921,7 +900,7 @@

Returns

- true if str contains any of chars; otherwise, false. + true if value contains any of chars; otherwise, false.

Remarks

@@ -1265,7 +1244,8 @@

GetName Method

- Gets the name from the specified string that contains a pair of name and value are separated by a separator string. + Gets the name from the specified string that contains a pair of name and value + separated by a separator string.

Syntax

public static string GetName (this string nameAndValue, string separator)
@@ -1276,7 +1256,7 @@ nameAndValue
- A string that contains a pair of name and value are separated by a separator string. + A string that contains a pair of name and value separated by a separator string.
separator @@ -1370,7 +1350,8 @@

GetValue Method

- Gets the value from the specified string that contains a pair of name and value are separated by a separator string. + Gets the value from the specified string that contains a pair of name and value + separated by a separator string.

Syntax

public static string GetValue (this string nameAndValue, string separator)
@@ -1381,7 +1362,7 @@ nameAndValue
- A string that contains a pair of name and value are separated by a separator string. + A string that contains a pair of name and value separated by a separator string.
separator @@ -1477,12 +1458,12 @@ Determines whether the specified string is enclosed in the specified char.

Syntax

-
public static bool IsEnclosedIn (this string str, char c)
+
public static bool IsEnclosedIn (this string value, char c)

Parameters

- str + value
A string to test. @@ -1497,7 +1478,7 @@

Returns

- true if str is enclosed in c; otherwise, false. + true if value is enclosed in c; otherwise, false.

Remarks

@@ -1587,97 +1568,6 @@ Namespace: WebSocketSharp
Assembly: websocket-sharp (in websocket-sharp.dll)

-

IsNull<T> Generic Method

-
-

- Determines whether the specified object is null. -

-

Syntax

-
public static bool IsNull<T> (this T obj)
where T : class
-

Type Parameters

-
-
-
- T -
-
- The type of obj parameter. -
-
-
-

Parameters

-
-
-
- obj -
-
- An object to test. -
-
-
-

Returns

-
- true if obj is null; otherwise, false. -
-

Remarks

-
- Documentation for this section has not yet been entered. -
-

Requirements

-
- Namespace: WebSocketSharp
Assembly: websocket-sharp (in websocket-sharp.dll)
-
-
-

IsNullDo<T> Generic Method

-
-

- Determines whether the specified object is null. - And invokes the specified Action delegate if the specified object is null. -

-

Syntax

-
public static bool IsNullDo<T> (this T obj, Action act)
where T : class
-

Type Parameters

-
-
-
- T -
-
- The type of the obj parameter. -
-
-
-

Parameters

-
-
-
- obj -
-
- A class to test. -
-
- act -
-
- An Action delegate that contains the method(s) called if the obj is null. -
-
-
-

Returns

-
- true if the obj parameter is null; otherwise, false. -
-

Remarks

-
- Documentation for this section has not yet been entered. -
-

Requirements

-
- Namespace: WebSocketSharp
Assembly: websocket-sharp (in websocket-sharp.dll)
-
-

IsNullOrEmpty Method

diff --git a/websocket-sharp/doc/mdoc/WebSocketSharp/Ext.xml b/websocket-sharp/doc/mdoc/WebSocketSharp/Ext.xml index 09f6e93e..fe46f53c 100644 --- a/websocket-sharp/doc/mdoc/WebSocketSharp/Ext.xml +++ b/websocket-sharp/doc/mdoc/WebSocketSharp/Ext.xml @@ -77,14 +77,14 @@ - - + + Method System.Boolean - + @@ -94,7 +94,7 @@ - + A to test. @@ -105,7 +105,7 @@ in the specified array of .

- true if contains any of ; otherwise, false. + true if contains any of ; otherwise, false. To be added. @@ -356,13 +356,14 @@ - A that contains a pair of name and value are separated by a separator string. + A that contains a pair of name and value separated by a separator string. A that contains a separator string. - Gets the name from the specified that contains a pair of name and value are separated by a separator string. + Gets the name from the specified that contains a pair of name and value + separated by a separator string. A that contains the name if any; otherwise, null. @@ -433,13 +434,14 @@ - A that contains a pair of name and value are separated by a separator string. + A that contains a pair of name and value separated by a separator string. A that contains a separator string. - Gets the value from the specified that contains a pair of name and value are separated by a separator string. + Gets the value from the specified that contains a pair of name and value + separated by a separator string. A that contains the value if any; otherwise, null. @@ -501,18 +503,18 @@
- - + + Method System.Boolean - + - + A to test. @@ -522,7 +524,7 @@ Determines whether the specified is enclosed in the specified .
- true if is enclosed in ; otherwise, false. + true if is enclosed in ; otherwise, false. To be added. @@ -576,77 +578,6 @@ - - - - Method - - System.Boolean - - - - - ReferenceTypeConstraint - - - - - - - - - The type of parameter. - - - An object to test. - - - Determines whether the specified object is . - - - true if is ; otherwise, false. - - To be added. - - - - - - Method - - System.Boolean - - - - - ReferenceTypeConstraint - - - - - - - - - - The type of the parameter. - - - A class to test. - - - An delegate that contains the method(s) called if the is . - - - Determines whether the specified object is . - And invokes the specified delegate if the specified object is . - - - true if the parameter is ; otherwise, false. - - To be added. - - diff --git a/websocket-sharp/doc/mdoc/index.xml b/websocket-sharp/doc/mdoc/index.xml index 1b30a8c8..563ba9ea 100644 --- a/websocket-sharp/doc/mdoc/index.xml +++ b/websocket-sharp/doc/mdoc/index.xml @@ -1,6 +1,6 @@ - + [00 24 00 00 04 80 00 00 94 00 00 00 06 02 00 00 00 24 00 00 52 53 41 31 00 04 00 00 11 00 00 00 29 17 fb 89 fe c3 91 f7 2b cb 8b e2 61 d2 3f 05 93 6d 65 a8 9e 63 72 a6 f5 d5 2c f2 9d 20 fa 0b c0 70 6a f6 88 7e 8b 90 3f 39 f5 76 c8 48 e0 bb 7b b2 7b ed d3 10 a7 1a 0f 70 98 0f 7f f4 4b 53 09 d2 a5 ef 36 c3 56 b4 aa f0 91 72 63 25 07 89 e0 93 3e 3f 2e f2 b9 73 0e 12 15 5d 43 56 c3 f4 70 a5 89 fe f7 f6 ac 3e 77 c2 d8 d0 84 91 f4 0c d1 f3 8e dc c3 c3 b8 38 3d 0c bf 17 de 20 78 c1 ] @@ -147,14 +147,14 @@ - - + + ExtensionMethod System.Boolean - + @@ -164,7 +164,7 @@ - + A to test. @@ -447,13 +447,14 @@ - A that contains a pair of name and value are separated by a separator string. + A that contains a pair of name and value separated by a separator string. A that contains a separator string. - Gets the name from the specified that contains a pair of name and value are separated by a separator string. + Gets the name from the specified that contains a pair of name and value + separated by a separator string. @@ -530,13 +531,14 @@ - A that contains a pair of name and value are separated by a separator string. + A that contains a pair of name and value separated by a separator string. A that contains a separator string. - Gets the value from the specified that contains a pair of name and value are separated by a separator string. + Gets the value from the specified that contains a pair of name and value + separated by a separator string. @@ -598,18 +600,18 @@ - - + + ExtensionMethod System.Boolean - + - + A to test. @@ -672,81 +674,6 @@ - - - - - - - - ExtensionMethod - - System.Boolean - - - - - ReferenceTypeConstraint - - - - - - - - - The type of parameter. - - - An object to test. - - - Determines whether the specified object is . - - - - - - - - - - - - - ExtensionMethod - - System.Boolean - - - - - ReferenceTypeConstraint - - - - - - - - - - The type of the parameter. - - - A class to test. - - - An delegate that contains the method(s) called if the is . - - - Determines whether the specified object is . - And invokes the specified delegate if the specified object is . - - - - -