[Modify] Polish it
Return directly the value.
This commit is contained in:
parent
a4b3800a21
commit
f0b53b9e7f
@ -315,9 +315,13 @@ namespace WebSocketSharp.Net
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the name of the realm associated with the listener.
|
/// Gets or sets the name of the realm associated with the listener.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// If this property is <see langword="null"/> or empty, <c>"SECRET AREA"</c> will be used as
|
||||||
|
/// the name of the realm.
|
||||||
|
/// </remarks>
|
||||||
/// <value>
|
/// <value>
|
||||||
/// A <see cref="string"/> that represents the name of the realm. The default value is
|
/// A <see cref="string"/> that represents the name of the realm. The default value is
|
||||||
/// <c>"SECRET AREA"</c>.
|
/// <see langword="null"/>.
|
||||||
/// </value>
|
/// </value>
|
||||||
/// <exception cref="ObjectDisposedException">
|
/// <exception cref="ObjectDisposedException">
|
||||||
/// This listener has been closed.
|
/// This listener has been closed.
|
||||||
@ -325,7 +329,7 @@ namespace WebSocketSharp.Net
|
|||||||
public string Realm {
|
public string Realm {
|
||||||
get {
|
get {
|
||||||
CheckDisposed ();
|
CheckDisposed ();
|
||||||
return _realm != null && _realm.Length > 0 ? _realm : (_realm = "SECRET AREA");
|
return _realm;
|
||||||
}
|
}
|
||||||
|
|
||||||
set {
|
set {
|
||||||
|
Loading…
Reference in New Issue
Block a user