Skip to content

Commit 6328a54

Browse files
Implemented RSA public/private keys and tests.
1 parent 4ee6c60 commit 6328a54

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1674
-363
lines changed

OnixLabs.Core/Enumeration.From.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public abstract partial class Enumeration<T>
2626
/// </summary>
2727
/// <param name="name">The name of the enumeration entry.</param>
2828
/// <returns>Returns an enumeration entry for the specified name.</returns>
29-
/// <exception cref="System.ArgumentException">If a single enumeration entry for the specified name does not exist.</exception>
29+
/// <exception cref="ArgumentException">If a single enumeration entry for the specified name does not exist.</exception>
3030
public static T FromName(string name)
3131
{
3232
IEnumerable<T> results = GetAll().Where(entry => entry.Name == name).ToArray();
@@ -42,7 +42,7 @@ public static T FromName(string name)
4242
/// </summary>
4343
/// <param name="value">The value of the enumeration entry.</param>
4444
/// <returns>Returns an enumeration entry for the specified value.</returns>
45-
/// <exception cref="System.ArgumentException">If a single enumeration entry for the specified value does not exist.</exception>
45+
/// <exception cref="ArgumentException">If a single enumeration entry for the specified value does not exist.</exception>
4646
public static T FromValue(int value)
4747
{
4848
IEnumerable<T> results = GetAll().Where(entry => entry.Value == value).ToArray();

OnixLabs.Core/Enumeration.To.cs

+5-3
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
using System;
16+
1517
namespace OnixLabs.Core;
1618

1719
public abstract partial class Enumeration<T>
1820
{
1921
/// <summary>
20-
/// Returns a <see cref="System.ValueTuple"/> that represents the current object.
22+
/// Returns a <see cref="ValueTuple{T1,T2}"/> that represents the current object.
2123
/// </summary>
2224
/// <returns>Returns a tuple that represents the current object.</returns>
2325
public (int Value, string Name) ToEntry()
@@ -26,9 +28,9 @@ public abstract partial class Enumeration<T>
2628
}
2729

2830
/// <summary>
29-
/// Returns a <see cref="System.String"/> that represents the current object.
31+
/// Returns a <see cref="String"/> that represents the current object.
3032
/// </summary>
31-
/// <returns>Returns a <see cref="System.String"/> that represents the current object.</returns>
33+
/// <returns>Returns a <see cref="String"/> that represents the current object.</returns>
3234
public override string ToString()
3335
{
3436
return Name;

OnixLabs.Core/Extensions.Object.cs

+8-8
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ namespace OnixLabs.Core;
2828
public static class ObjectExtensions
2929
{
3030
/// <summary>
31-
/// Compares the current <see cref="System.IComparable{T}"/> instance with the specified <see cref="System.Object"/> instance.
31+
/// Compares the current <see cref="IComparable{T}"/> instance with the specified <see cref="Object"/> instance.
3232
/// </summary>
33-
/// <param name="comparable">The left-hand <see cref="System.IComparable{T}"/> instance to compare.</param>
34-
/// <param name="obj">The right-hand <see cref="System.Object"/> instance to compare.</param>
35-
/// <typeparam name="T">The underlying type of the current <see cref="System.IComparable{T}"/>.</typeparam>
33+
/// <param name="comparable">The left-hand <see cref="IComparable{T}"/> instance to compare.</param>
34+
/// <param name="obj">The right-hand <see cref="Object"/> instance to compare.</param>
35+
/// <typeparam name="T">The underlying type of the current <see cref="IComparable{T}"/>.</typeparam>
3636
/// <returns>Returns a signed integer that indicates the relative order of the objects being compared.</returns>
37-
/// <exception cref="System.ArgumentException">If the specified object is not <see langword="null"/>, or of the specified type.</exception>
37+
/// <exception cref="ArgumentException">If the specified object is not <see langword="null"/>, or of the specified type.</exception>
3838
public static int CompareToObject<T>(this IComparable<T> comparable, object? obj)
3939
{
4040
if (obj is null) return 1;
@@ -43,10 +43,10 @@ public static int CompareToObject<T>(this IComparable<T> comparable, object? obj
4343
}
4444

4545
/// <summary>
46-
/// Gets a record-like <see cref="System.String"/> representation of the current <see cref="System.Object"/> instance.
46+
/// Gets a record-like <see cref="String"/> representation of the current <see cref="Object"/> instance.
4747
/// </summary>
48-
/// <param name="value">The current <see cref="System.Object"/> instance.</param>
49-
/// <returns>Returns a record-like <see cref="System.String"/> representation of the current <see cref="System.Object"/> instance.</returns>
48+
/// <param name="value">The current <see cref="Object"/> instance.</param>
49+
/// <returns>Returns a record-like <see cref="String"/> representation of the current <see cref="Object"/> instance.</returns>
5050
public static string ToRecordString(this object value)
5151
{
5252
Type type = value.GetType();

0 commit comments

Comments
 (0)