Removes implicit this.

This commit is contained in:
Kamron Batman 2018-09-14 12:56:58 -07:00
parent 04b4cfe75b
commit 83dcf536d8
533 changed files with 2804 additions and 2806 deletions

View file

@ -80,10 +80,10 @@ namespace Server.Engines.Reports
BaseInfo cmp = obj as BaseInfo;
int v = cmp.GetPageCount( cmp is StaffInfo ? PageResolution.Handled : PageResolution.None, DateTime.UtcNow - m_SortRange, DateTime.UtcNow )
- this.GetPageCount( this is StaffInfo ? PageResolution.Handled : PageResolution.None, DateTime.UtcNow - m_SortRange, DateTime.UtcNow );
- GetPageCount( this is StaffInfo ? PageResolution.Handled : PageResolution.None, DateTime.UtcNow - m_SortRange, DateTime.UtcNow );
if ( v == 0 )
v = String.Compare( this.Display, cmp.Display );
v = String.Compare( Display, cmp.Display );
return v;
}

View file

@ -16,7 +16,7 @@ namespace Server.Engines.Reports
/// <summary>
/// Strongly typed collection of Server.Engines.Reports.PageInfo.
/// </summary>
public class PageInfoCollection : System.Collections.CollectionBase
public class PageInfoCollection : CollectionBase
{
/// <summary>
@ -30,10 +30,10 @@ namespace Server.Engines.Reports
/// <summary>
/// Gets or sets the value of the Server.Engines.Reports.PageInfo at a specific position in the PageInfoCollection.
/// </summary>
public Server.Engines.Reports.PageInfo this[int index]
public PageInfo this[int index]
{
get => ((Server.Engines.Reports.PageInfo)(this.List[index]));
set => this.List[index] = value;
get => ((PageInfo)(List[index]));
set => List[index] = value;
}
/// <summary>
@ -41,9 +41,9 @@ namespace Server.Engines.Reports
/// </summary>
/// <param name="value">Server.Engines.Reports.PageInfo instance.</param>
/// <returns>The position into which the new element was inserted.</returns>
public int Add(Server.Engines.Reports.PageInfo value)
public int Add(PageInfo value)
{
return this.List.Add(value);
return List.Add(value);
}
/// <summary>
@ -51,9 +51,9 @@ namespace Server.Engines.Reports
/// </summary>
/// <param name="value">Server.Engines.Reports.PageInfo instance to search for.</param>
/// <returns>True if the Server.Engines.Reports.PageInfo instance is in the collection; otherwise false.</returns>
public bool Contains(Server.Engines.Reports.PageInfo value)
public bool Contains(PageInfo value)
{
return this.List.Contains(value);
return List.Contains(value);
}
/// <summary>
@ -61,18 +61,18 @@ namespace Server.Engines.Reports
/// </summary>
/// <param name="value">Server.Engines.Reports.PageInfo instance to find.</param>
/// <returns>The zero-based index of the specified Server.Engines.Reports.PageInfo instance. If the object is not found, the return value is -1.</returns>
public int IndexOf(Server.Engines.Reports.PageInfo value)
public int IndexOf(PageInfo value)
{
return this.List.IndexOf(value);
return List.IndexOf(value);
}
/// <summary>
/// Removes a specified Server.Engines.Reports.PageInfo instance from this collection.
/// </summary>
/// <param name="value">The Server.Engines.Reports.PageInfo instance to remove.</param>
public void Remove(Server.Engines.Reports.PageInfo value)
public void Remove(PageInfo value)
{
this.List.Remove(value);
List.Remove(value);
}
/// <summary>
@ -89,15 +89,15 @@ namespace Server.Engines.Reports
/// </summary>
/// <param name="index">Zero-based index.</param>
/// <param name="value">The Server.Engines.Reports.PageInfo instance to insert.</param>
public void Insert(int index, Server.Engines.Reports.PageInfo value)
public void Insert(int index, PageInfo value)
{
this.List.Insert(index, value);
List.Insert(index, value);
}
/// <summary>
/// Strongly typed enumerator of Server.Engines.Reports.PageInfo.
/// </summary>
public class PageInfoCollectionEnumerator : System.Collections.IEnumerator
public class PageInfoCollectionEnumerator : IEnumerator
{
/// <summary>
@ -108,7 +108,7 @@ namespace Server.Engines.Reports
/// <summary>
/// Current element pointed to.
/// </summary>
private Server.Engines.Reports.PageInfo _currentElement;
private PageInfo _currentElement;
/// <summary>
/// Collection to enumerate.
@ -128,7 +128,7 @@ namespace Server.Engines.Reports
/// <summary>
/// Gets the Server.Engines.Reports.PageInfo object in the enumerated PageInfoCollection currently indexed by this instance.
/// </summary>
public Server.Engines.Reports.PageInfo Current
public PageInfo Current
{
get
{
@ -182,7 +182,7 @@ namespace Server.Engines.Reports
< (_collection.Count - 1)))
{
_index = (_index + 1);
_currentElement = this._collection[_index];
_currentElement = _collection[_index];
return true;
}
_index = _collection.Count;

View file

@ -16,7 +16,7 @@ namespace Server.Engines.Reports
/// <summary>
/// Strongly typed collection of Server.Engines.Reports.QueueStatus.
/// </summary>
public class QueueStatusCollection : System.Collections.CollectionBase
public class QueueStatusCollection : CollectionBase
{
/// <summary>
@ -30,10 +30,10 @@ namespace Server.Engines.Reports
/// <summary>
/// Gets or sets the value of the Server.Engines.Reports.QueueStatus at a specific position in the QueueStatusCollection.
/// </summary>
public Server.Engines.Reports.QueueStatus this[int index]
public QueueStatus this[int index]
{
get => ((Server.Engines.Reports.QueueStatus)(this.List[index]));
set => this.List[index] = value;
get => ((QueueStatus)(List[index]));
set => List[index] = value;
}
/// <summary>
@ -41,9 +41,9 @@ namespace Server.Engines.Reports
/// </summary>
/// <param name="value">Server.Engines.Reports.QueueStatus instance.</param>
/// <returns>The position into which the new element was inserted.</returns>
public int Add(Server.Engines.Reports.QueueStatus value)
public int Add(QueueStatus value)
{
return this.List.Add(value);
return List.Add(value);
}
/// <summary>
@ -51,9 +51,9 @@ namespace Server.Engines.Reports
/// </summary>
/// <param name="value">Server.Engines.Reports.QueueStatus instance to search for.</param>
/// <returns>True if the Server.Engines.Reports.QueueStatus instance is in the collection; otherwise false.</returns>
public bool Contains(Server.Engines.Reports.QueueStatus value)
public bool Contains(QueueStatus value)
{
return this.List.Contains(value);
return List.Contains(value);
}
/// <summary>
@ -61,18 +61,18 @@ namespace Server.Engines.Reports
/// </summary>
/// <param name="value">Server.Engines.Reports.QueueStatus instance to find.</param>
/// <returns>The zero-based index of the specified Server.Engines.Reports.QueueStatus instance. If the object is not found, the return value is -1.</returns>
public int IndexOf(Server.Engines.Reports.QueueStatus value)
public int IndexOf(QueueStatus value)
{
return this.List.IndexOf(value);
return List.IndexOf(value);
}
/// <summary>
/// Removes a specified Server.Engines.Reports.QueueStatus instance from this collection.
/// </summary>
/// <param name="value">The Server.Engines.Reports.QueueStatus instance to remove.</param>
public void Remove(Server.Engines.Reports.QueueStatus value)
public void Remove(QueueStatus value)
{
this.List.Remove(value);
List.Remove(value);
}
/// <summary>
@ -89,15 +89,15 @@ namespace Server.Engines.Reports
/// </summary>
/// <param name="index">Zero-based index.</param>
/// <param name="value">The Server.Engines.Reports.QueueStatus instance to insert.</param>
public void Insert(int index, Server.Engines.Reports.QueueStatus value)
public void Insert(int index, QueueStatus value)
{
this.List.Insert(index, value);
List.Insert(index, value);
}
/// <summary>
/// Strongly typed enumerator of Server.Engines.Reports.QueueStatus.
/// </summary>
public class QueueStatusCollectionEnumerator : System.Collections.IEnumerator
public class QueueStatusCollectionEnumerator : IEnumerator
{
/// <summary>
@ -108,7 +108,7 @@ namespace Server.Engines.Reports
/// <summary>
/// Current element pointed to.
/// </summary>
private Server.Engines.Reports.QueueStatus _currentElement;
private QueueStatus _currentElement;
/// <summary>
/// Collection to enumerate.
@ -128,7 +128,7 @@ namespace Server.Engines.Reports
/// <summary>
/// Gets the Server.Engines.Reports.QueueStatus object in the enumerated QueueStatusCollection currently indexed by this instance.
/// </summary>
public Server.Engines.Reports.QueueStatus Current
public QueueStatus Current
{
get
{
@ -182,7 +182,7 @@ namespace Server.Engines.Reports
< (_collection.Count - 1)))
{
_index = (_index + 1);
_currentElement = this._collection[_index];
_currentElement = _collection[_index];
return true;
}
_index = _collection.Count;

View file

@ -16,7 +16,7 @@ namespace Server.Engines.Reports
/// <summary>
/// Strongly typed collection of Server.Engines.Reports.ResponseInfo.
/// </summary>
public class ResponseInfoCollection : System.Collections.CollectionBase
public class ResponseInfoCollection : CollectionBase
{
/// <summary>
@ -30,10 +30,10 @@ namespace Server.Engines.Reports
/// <summary>
/// Gets or sets the value of the Server.Engines.Reports.ResponseInfo at a specific position in the ResponseInfoCollection.
/// </summary>
public Server.Engines.Reports.ResponseInfo this[int index]
public ResponseInfo this[int index]
{
get => ((Server.Engines.Reports.ResponseInfo)(this.List[index]));
set => this.List[index] = value;
get => ((ResponseInfo)(List[index]));
set => List[index] = value;
}
public int Add( string sentBy, string message )
@ -46,9 +46,9 @@ namespace Server.Engines.Reports
/// </summary>
/// <param name="value">Server.Engines.Reports.ResponseInfo instance.</param>
/// <returns>The position into which the new element was inserted.</returns>
public int Add(Server.Engines.Reports.ResponseInfo value)
public int Add(ResponseInfo value)
{
return this.List.Add(value);
return List.Add(value);
}
/// <summary>
@ -56,9 +56,9 @@ namespace Server.Engines.Reports
/// </summary>
/// <param name="value">Server.Engines.Reports.ResponseInfo instance to search for.</param>
/// <returns>True if the Server.Engines.Reports.ResponseInfo instance is in the collection; otherwise false.</returns>
public bool Contains(Server.Engines.Reports.ResponseInfo value)
public bool Contains(ResponseInfo value)
{
return this.List.Contains(value);
return List.Contains(value);
}
/// <summary>
@ -66,18 +66,18 @@ namespace Server.Engines.Reports
/// </summary>
/// <param name="value">Server.Engines.Reports.ResponseInfo instance to find.</param>
/// <returns>The zero-based index of the specified Server.Engines.Reports.ResponseInfo instance. If the object is not found, the return value is -1.</returns>
public int IndexOf(Server.Engines.Reports.ResponseInfo value)
public int IndexOf(ResponseInfo value)
{
return this.List.IndexOf(value);
return List.IndexOf(value);
}
/// <summary>
/// Removes a specified Server.Engines.Reports.ResponseInfo instance from this collection.
/// </summary>
/// <param name="value">The Server.Engines.Reports.ResponseInfo instance to remove.</param>
public void Remove(Server.Engines.Reports.ResponseInfo value)
public void Remove(ResponseInfo value)
{
this.List.Remove(value);
List.Remove(value);
}
/// <summary>
@ -94,15 +94,15 @@ namespace Server.Engines.Reports
/// </summary>
/// <param name="index">Zero-based index.</param>
/// <param name="value">The Server.Engines.Reports.ResponseInfo instance to insert.</param>
public void Insert(int index, Server.Engines.Reports.ResponseInfo value)
public void Insert(int index, ResponseInfo value)
{
this.List.Insert(index, value);
List.Insert(index, value);
}
/// <summary>
/// Strongly typed enumerator of Server.Engines.Reports.ResponseInfo.
/// </summary>
public class ResponseInfoCollectionEnumerator : System.Collections.IEnumerator
public class ResponseInfoCollectionEnumerator : IEnumerator
{
/// <summary>
@ -113,7 +113,7 @@ namespace Server.Engines.Reports
/// <summary>
/// Current element pointed to.
/// </summary>
private Server.Engines.Reports.ResponseInfo _currentElement;
private ResponseInfo _currentElement;
/// <summary>
/// Collection to enumerate.
@ -133,7 +133,7 @@ namespace Server.Engines.Reports
/// <summary>
/// Gets the Server.Engines.Reports.ResponseInfo object in the enumerated ResponseInfoCollection currently indexed by this instance.
/// </summary>
public Server.Engines.Reports.ResponseInfo Current
public ResponseInfo Current
{
get
{
@ -187,7 +187,7 @@ namespace Server.Engines.Reports
< (_collection.Count - 1)))
{
_index = (_index + 1);
_currentElement = this._collection[_index];
_currentElement = _collection[_index];
return true;
}
_index = _collection.Count;