Refactored ErrorEventArgs.cs

This commit is contained in:
sta 2014-07-07 19:24:52 +09:00
parent de12277094
commit f641b9b611

View File

@ -4,7 +4,7 @@
*
* The MIT License
*
* Copyright (c) 2012-2013 sta.blockhead
* Copyright (c) 2012-2014 sta.blockhead
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@ -35,15 +35,22 @@ namespace WebSocketSharp
/// </summary>
/// <remarks>
/// A <see cref="WebSocket.OnError"/> event occurs when the <see cref="WebSocket"/> gets an error.
/// If you want to get the error message, you access the <see cref="ErrorEventArgs.Message"/> property.
/// If you would like to get the error message, you should access the <see cref="Message"/>
/// property.
/// </remarks>
public class ErrorEventArgs : EventArgs
{
#region Private Fields
private string _message;
#endregion
#region Internal Constructors
internal ErrorEventArgs (string message)
{
Message = message;
_message = message;
}
#endregion
@ -54,9 +61,13 @@ namespace WebSocketSharp
/// Gets the error message.
/// </summary>
/// <value>
/// A <see cref="string"/> that contains an error message.
/// A <see cref="string"/> that represents the error message.
/// </value>
public string Message { get; private set; }
public string Message {
get {
return _message;
}
}
#endregion
}