Skip to content

Commit

Permalink
what am I doing
Browse files Browse the repository at this point in the history
  • Loading branch information
0xor1 committed May 15, 2024
1 parent f654881 commit 6f04f87
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 91 deletions.
4 changes: 2 additions & 2 deletions Common.Client/Common.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<PackageId>0xor1.Common.Client</PackageId>
<Version>3.0.26</Version>
<Version>3.0.27</Version>
<Authors>Daniel Robinson</Authors>
<Company>Personal</Company>
<Product>Personal</Product>
Expand All @@ -18,7 +18,7 @@

<ItemGroup>
<PackageReference Include="DartSassBuilder" Version="1.0.0" />
<PackageReference Include="0xor1.Common.Shared" Version="3.0.26" />
<PackageReference Include="0xor1.Common.Shared" Version="3.0.27" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="8.0.0" />
Expand Down
4 changes: 2 additions & 2 deletions Common.Server/Common.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<PackageId>0xor1.Common.Server</PackageId>
<Version>3.0.26</Version>
<Version>3.0.27</Version>
<Authors>Daniel Robinson</Authors>
<Company>Personal</Company>
<Product>Personal</Product>
Expand All @@ -17,7 +17,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="0xor1.Common.Shared" Version="3.0.26" />
<PackageReference Include="0xor1.Common.Shared" Version="3.0.27" />
<PackageReference Include="AWSSDK.S3" Version="3.7.300.2" />
<PackageReference Include="AWSSDK.SimpleEmail" Version="3.7.300.2" />
<PackageReference Include="CSharpier.MsBuild" Version="0.26.2">
Expand Down
2 changes: 1 addition & 1 deletion Common.Shared/Common.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<PackageId>0xor1.Common.Shared</PackageId>
<Version>3.0.26</Version>
<Version>3.0.27</Version>
<Authors>Daniel Robinson</Authors>
<Company>Personal</Company>
<Product>Personal</Product>
Expand Down
87 changes: 1 addition & 86 deletions Common.Shared/Key.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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");
}
}

0 comments on commit 6f04f87

Please sign in to comment.