diff --git a/X10D/src/StringExtensions/StringExtensions.cs b/X10D/src/StringExtensions/StringExtensions.cs
index cd4eaa1..cd33e50 100644
--- a/X10D/src/StringExtensions/StringExtensions.cs
+++ b/X10D/src/StringExtensions/StringExtensions.cs
@@ -72,38 +72,38 @@ public static class StringExtensions
///
/// Converts this string from one encoding to another.
///
- /// The input string.
- /// The input encoding.
- /// The output encoding.
+ /// The input string.
+ /// The input encoding.
+ /// The output encoding.
///
/// Returns a new with its data converted to
- /// .
+ /// .
///
///
- /// is
+ /// is
/// - or -
- /// is
+ /// is
/// -or
- /// is .
+ /// is .
///
- public static string ChangeEncoding(this string str, Encoding from, Encoding to)
+ public static string ChangeEncoding(this string value, Encoding sourceEncoding, Encoding destinationEncoding)
{
- if (str is null)
+ if (value is null)
{
- throw new ArgumentNullException(nameof(str));
+ throw new ArgumentNullException(nameof(value));
}
- if (from is null)
+ if (sourceEncoding is null)
{
- throw new ArgumentNullException(nameof(from));
+ throw new ArgumentNullException(nameof(sourceEncoding));
}
- if (to is null)
+ if (destinationEncoding is null)
{
- throw new ArgumentNullException(nameof(to));
+ throw new ArgumentNullException(nameof(destinationEncoding));
}
- return str.GetBytes(from).ToString(to);
+ return value.GetBytes(sourceEncoding).ToString(destinationEncoding);
}
///