From a3815a1e1067dcd3367baa7d329ce82bf04a1b59 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 10 Mar 2021 11:27:32 +0000 Subject: [PATCH] (#15) Rewrite xmldoc for Base64Encode/Decode --- X10D/src/StringExtensions/StringExtensions.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/X10D/src/StringExtensions/StringExtensions.cs b/X10D/src/StringExtensions/StringExtensions.cs index 44896fc..d9bcb96 100644 --- a/X10D/src/StringExtensions/StringExtensions.cs +++ b/X10D/src/StringExtensions/StringExtensions.cs @@ -32,20 +32,20 @@ namespace X10D.StringExtensions } /// - /// Decodes a base-64 encoded string. + /// Converts the specified string, which encodes binary data as base-64 digits, to an equivalent plain text string. /// - /// The base-64 string to decode. - /// Returns the string in plain text. - public static string Base64Decode(this string data) + /// The base-64 string to convert. + /// The plain text string representation of . + public static string Base64Decode(this string value) { - return Convert.FromBase64String(data).ToString(Encoding.ASCII); + return Convert.FromBase64String(value).ToString(Encoding.ASCII); } /// - /// Encodes a base-64 encoded string. + /// Converts the current string to its equivalent string representation that is encoded with base-64 digits. /// - /// The plain text string to decode. - /// Returns the string in plain text. + /// The plain text string to convert. + /// The string representation, in base 64, of . public static string Base64Encode(this string value) { return Convert.ToBase64String(value.GetBytes(Encoding.ASCII));