From 6043ce73251441226d6e4d6c815bd577d054013b Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 24 Nov 2016 17:08:41 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/WebSocket.cs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs index e63a5198..43f71a89 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -2693,37 +2693,37 @@ namespace WebSocketSharp } /// - /// Sends the specified as the binary data using + /// Sends the specified as the binary data using /// the WebSocket connection. /// - /// + /// /// A that represents the file to send. /// /// /// The current state of the connection is not Open. /// /// - /// is . + /// is . /// /// - /// cannot be opened to read. + /// cannot be opened to read. /// - public void Send (FileInfo file) + public void Send (FileInfo fileInfo) { if (_readyState != WebSocketState.Open) { var msg = "The current state of the connection is not Open."; throw new InvalidOperationException (msg); } - if (file == null) - throw new ArgumentNullException ("file"); + if (fileInfo == null) + throw new ArgumentNullException ("fileInfo"); - if (!file.Exists) - throw new ArgumentException ("The file does not exist.", "file"); + if (!fileInfo.Exists) + throw new ArgumentException ("The file does not exist.", "fileInfo"); FileStream stream; - if (!file.TryOpenRead (out stream)) - throw new ArgumentException ("Cannot be opened to read.", "file"); + if (!fileInfo.TryOpenRead (out stream)) + throw new ArgumentException ("The file could not be opened.", "fileInfo"); send (Opcode.Binary, stream); }