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);
}