Use correct inheritance keywords.

This commit is contained in:
2019-04-23 23:10:31 +01:00
parent 663bb8c4c4
commit a295d6a9de
26 changed files with 38 additions and 38 deletions

View File

@@ -455,7 +455,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -455,7 +455,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -456,7 +456,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -455,7 +455,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -456,7 +456,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -456,7 +456,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -68,48 +68,48 @@ namespace Claunia.Encoding
/// <summary> /// <summary>
/// Gets a value indicating whether the current encoding can be used by browser clients for displaying content. /// Gets a value indicating whether the current encoding can be used by browser clients for displaying content.
/// </summary> /// </summary>
public abstract bool IsBrowserDisplay { get; } public abstract override bool IsBrowserDisplay { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether the current encoding can be used by browser clients for saving content. /// Gets a value indicating whether the current encoding can be used by browser clients for saving content.
/// </summary> /// </summary>
public abstract bool IsBrowserSave { get; } public abstract override bool IsBrowserSave { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether the current encoding can be used by mail and news clients for displaying content. /// Gets a value indicating whether the current encoding can be used by mail and news clients for displaying content.
/// </summary> /// </summary>
public abstract bool IsMailNewsDisplay { get; } public abstract override bool IsMailNewsDisplay { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether the current encoding can be used by mail and news clients for saving content. /// Gets a value indicating whether the current encoding can be used by mail and news clients for saving content.
/// </summary> /// </summary>
public abstract bool IsMailNewsSave { get; } public abstract override bool IsMailNewsSave { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether the current encoding is read-only. /// Gets a value indicating whether the current encoding is read-only.
/// </summary> /// </summary>
/// <value>The is single byte.</value> /// <value>The is single byte.</value>
public abstract bool IsReadOnly { get; } public new abstract bool IsReadOnly { get; }
/// <summary> /// <summary>
/// Gets a value indicating whether the current encoding uses single-byte code points. /// Gets a value indicating whether the current encoding uses single-byte code points.
/// </summary> /// </summary>
public abstract bool IsSingleByte { get; } public abstract override bool IsSingleByte { get; }
/// <summary> /// <summary>
/// Gets the code page identifier of the current Encoding. /// Gets the code page identifier of the current Encoding.
/// </summary> /// </summary>
public abstract int CodePage { get; } public abstract override int CodePage { get; }
/// <summary> /// <summary>
/// Gets a name for the current encoding that can be used with mail agent body tags /// Gets a name for the current encoding that can be used with mail agent body tags
/// </summary> /// </summary>
public abstract string BodyName { get; } public abstract override string BodyName { get; }
/// <summary> /// <summary>
/// Gets a name for the current encoding that can be used with mail agent header tags /// Gets a name for the current encoding that can be used with mail agent header tags
/// </summary> /// </summary>
public abstract string HeaderName { get; } public abstract override string HeaderName { get; }
/// <summary> /// <summary>
/// Ggets the name registered with the Internet Assigned Numbers Authority (IANA) for the current encoding. /// Ggets the name registered with the Internet Assigned Numbers Authority (IANA) for the current encoding.
@@ -119,18 +119,18 @@ namespace Claunia.Encoding
/// <summary> /// <summary>
/// Gets the human-readable description of the current encoding. /// Gets the human-readable description of the current encoding.
/// </summary> /// </summary>
public abstract string EncodingName { get; } public abstract override string EncodingName { get; }
/// <summary> /// <summary>
/// Gets the Windows operating system code page that most closely corresponds to the current encoding. /// Gets the Windows operating system code page that most closely corresponds to the current encoding.
/// </summary> /// </summary>
public abstract int WindowsCodePage { get; } public abstract override int WindowsCodePage { get; }
/// <summary> /// <summary>
/// Returns an array that contains all encodings. /// Returns an array that contains all encodings.
/// </summary> /// </summary>
/// <returns>An array that contains all encodings.</returns> /// <returns>An array that contains all encodings.</returns>
public static IEnumerable<EncodingInfo> GetEncodings() public new static IEnumerable<EncodingInfo> GetEncodings()
{ {
return (from type in Assembly.GetExecutingAssembly().GetTypes() return (from type in Assembly.GetExecutingAssembly().GetTypes()
where type.IsSubclassOf(typeof(Encoding)) where type.IsSubclassOf(typeof(Encoding))
@@ -147,7 +147,7 @@ namespace Claunia.Encoding
/// The code page name of the preferred encoding. Any value returned by the WebName property is valid. /// The code page name of the preferred encoding. Any value returned by the WebName property is valid.
/// Possible values are listed in the Name column of the table that appears in the Encoding class topic. /// Possible values are listed in the Name column of the table that appears in the Encoding class topic.
/// </param> /// </param>
public static System.Text.Encoding GetEncoding(string name) public new static System.Text.Encoding GetEncoding(string name)
{ {
foreach(Type type in Assembly.GetExecutingAssembly().GetTypes()) foreach(Type type in Assembly.GetExecutingAssembly().GetTypes())
if(type.IsSubclassOf(typeof(Encoding))) if(type.IsSubclassOf(typeof(Encoding)))

View File

@@ -456,7 +456,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -457,7 +457,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -456,7 +456,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -455,7 +455,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -455,7 +455,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -455,7 +455,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -455,7 +455,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -455,7 +455,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -455,7 +455,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -458,7 +458,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -456,7 +456,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -456,7 +456,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -455,7 +455,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -455,7 +455,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -456,7 +456,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -464,7 +464,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -455,7 +455,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -455,7 +455,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }

View File

@@ -455,7 +455,7 @@ namespace Claunia.Encoding
/// </summary> /// </summary>
/// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns> /// <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param> /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
public string GetString(byte[] bytes) public override string GetString(byte[] bytes)
{ {
return GetString(bytes, 0, bytes.Length); return GetString(bytes, 0, bytes.Length);
} }