@@ -20,31 +20,31 @@ namespace OnixLabs.Core.Text
2020 public readonly partial struct Base32
2121 {
2222 /// <summary>
23- /// The underlying value .
23+ /// Initializes a new instance of the <see cref="Base32"/> struct .
2424 /// </summary>
25- private readonly byte [ ] value ;
25+ /// <param name="value">The underlying value.</param>
26+ /// <param name="alphabet">The alphabet that will be used for Base-32 encoding and decoding operations.</param>
27+ /// <param name="padding">Determines whether padding should be applied for Base-32 encoding and decoding operations.</param>
28+ private Base32 ( byte [ ] value , Base32Alphabet alphabet , bool padding )
29+ {
30+ Value = value ;
31+ Alphabet = alphabet ;
32+ Padding = padding ;
33+ }
2634
2735 /// <summary>
28- /// The alphabet that will be used for Base-32 encoding and decoding operations .
36+ /// Gets the underlying value .
2937 /// </summary>
30- private readonly Base32Alphabet alphabet ;
38+ private byte [ ] Value { get ; }
3139
3240 /// <summary>
33- /// Determines whether padding should be applied for Base-32 encoding and decoding operations.
41+ /// Gets the alphabet that will be used for Base-32 encoding and decoding operations.
3442 /// </summary>
35- private readonly bool padding ;
43+ private Base32Alphabet Alphabet { get ; }
3644
3745 /// <summary>
38- /// Initializes a new instance of the <see cref="Base32"/> struct .
46+ /// Gets a value that determines whether padding should be applied for Base-32 encoding and decoding operations .
3947 /// </summary>
40- /// <param name="value">The underlying value.</param>
41- /// <param name="alphabet">The alphabet that will be used for Base-32 encoding and decoding operations.</param>
42- /// <param name="padding">Determines whether padding should be applied for Base-32 encoding and decoding operations.</param>
43- private Base32 ( byte [ ] value , Base32Alphabet alphabet , bool padding )
44- {
45- this . value = value ;
46- this . alphabet = alphabet ;
47- this . padding = padding ;
48- }
48+ private bool Padding { get ; }
4949 }
5050}
0 commit comments