Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions source/System/Text/Encoding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,18 @@ public virtual char[] GetChars(byte[] bytes, int byteIndex, int byteCount)
throw new NotImplementedException();
}

/// <summary>
/// When overridden in a derived class, decodes a sequence of bytes from the specified byte array into a <see cref="String"/>.
/// </summary>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
/// <param name="index">The index of the first byte to decode.</param>
/// <param name="count">The number of bytes to decode.</param>
/// <returns>A <see cref="String"/> that contains the results of decoding the specified sequence of bytes.</returns>
public virtual string GetString(byte[] bytes, int index, int count)
{
return new string(GetChars(bytes, index, count));
}

/// <summary>
/// When overridden in a derived class, obtains a decoder that converts an encoded sequence of bytes into a sequence of characters.
/// </summary>
Expand Down