diff --git a/Common.Client/Common.Client.csproj b/Common.Client/Common.Client.csproj
index afa48c2..9aca2b4 100644
--- a/Common.Client/Common.Client.csproj
+++ b/Common.Client/Common.Client.csproj
@@ -5,7 +5,7 @@
enable
enable
0xor1.Common.Client
- 3.0.26
+ 3.0.27
Daniel Robinson
Personal
Personal
@@ -18,7 +18,7 @@
-
+
diff --git a/Common.Server/Common.Server.csproj b/Common.Server/Common.Server.csproj
index de96f06..3d6e60d 100644
--- a/Common.Server/Common.Server.csproj
+++ b/Common.Server/Common.Server.csproj
@@ -5,7 +5,7 @@
enable
enable
0xor1.Common.Server
- 3.0.26
+ 3.0.27
Daniel Robinson
Personal
Personal
@@ -17,7 +17,7 @@
-
+
diff --git a/Common.Shared/Common.Shared.csproj b/Common.Shared/Common.Shared.csproj
index 343db4a..733723d 100644
--- a/Common.Shared/Common.Shared.csproj
+++ b/Common.Shared/Common.Shared.csproj
@@ -5,7 +5,7 @@
enable
enable
0xor1.Common.Shared
- 3.0.26
+ 3.0.27
Daniel Robinson
Personal
Personal
diff --git a/Common.Shared/Key.cs b/Common.Shared/Key.cs
index f289f46..8365acf 100644
--- a/Common.Shared/Key.cs
+++ b/Common.Shared/Key.cs
@@ -4,7 +4,7 @@
namespace Common.Shared;
[TypeConverter(typeof(KeyConverter))]
-public partial record Key : IConvertible
+public partial record Key
{
public const int Min = 1;
public const int Max = 50;
@@ -98,89 +98,4 @@ public override string ToString()
{
return Value;
}
-
- public TypeCode GetTypeCode()
- {
- return TypeCode.String;
- }
-
- public bool ToBoolean(IFormatProvider? provider)
- {
- throw new InvalidOperationException("can't convert key to bool");
- }
-
- public byte ToByte(IFormatProvider? provider)
- {
- throw new InvalidOperationException("can't convert key to byte");
- }
-
- public char ToChar(IFormatProvider? provider)
- {
- throw new InvalidOperationException("can't convert key to char");
- }
-
- public DateTime ToDateTime(IFormatProvider? provider)
- {
- throw new InvalidOperationException("can't convert key to datetime");
- }
-
- public decimal ToDecimal(IFormatProvider? provider)
- {
- throw new InvalidOperationException("can't convert key to decimal");
- }
-
- public double ToDouble(IFormatProvider? provider)
- {
- throw new InvalidOperationException("can't convert key to double");
- }
-
- public short ToInt16(IFormatProvider? provider)
- {
- throw new InvalidOperationException("can't convert key to int16");
- }
-
- public int ToInt32(IFormatProvider? provider)
- {
- throw new InvalidOperationException("can't convert key to int32");
- }
-
- public long ToInt64(IFormatProvider? provider)
- {
- throw new InvalidOperationException("can't convert key to int64");
- }
-
- public sbyte ToSByte(IFormatProvider? provider)
- {
- throw new InvalidOperationException("can't convert key to sbyte");
- }
-
- public float ToSingle(IFormatProvider? provider)
- {
- throw new InvalidOperationException("can't convert key to float");
- }
-
- public string ToString(IFormatProvider? provider)
- {
- return Value;
- }
-
- public object ToType(Type conversionType, IFormatProvider? provider)
- {
- return Value;
- }
-
- public ushort ToUInt16(IFormatProvider? provider)
- {
- throw new InvalidOperationException("can't convert key to uint16");
- }
-
- public uint ToUInt32(IFormatProvider? provider)
- {
- throw new InvalidOperationException("can't convert key to uint32");
- }
-
- public ulong ToUInt64(IFormatProvider? provider)
- {
- throw new InvalidOperationException("can't convert key to uint64");
- }
}