Skip to content

Commit

Permalink
Change generic type parameter constraints to INumberBase
Browse files Browse the repository at this point in the history
Change generic type parameter constraints to INumberBase in AddressToRawNumberConverter, Hybrid, LinksConstants, RawNumberToAddressConverter,
  • Loading branch information
FreePhoenix888 committed Dec 29, 2022
1 parent 685700d commit 11ae1c4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion csharp/Platform.Data/Hybrid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Platform.Data
/// </para>
/// <para></para>
/// </summary>
public struct Hybrid<TLinkAddress> : IEquatable<Hybrid<TLinkAddress>> where TLinkAddress:IUnsignedNumber<TLinkAddress>
public struct Hybrid<TLinkAddress> : IEquatable<Hybrid<TLinkAddress>> where TLinkAddress:INumberBase<TLinkAddress>
{
private static readonly UncheckedSignExtendingConverter<TLinkAddress, long> _addressToInt64Converter = UncheckedSignExtendingConverter<TLinkAddress, long>.Default;
private static readonly UncheckedConverter<object, long> _objectToInt64Converter = UncheckedConverter<object, long>.Default;
Expand Down
2 changes: 1 addition & 1 deletion csharp/Platform.Data/LinksConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Platform.Data
/// <para></para>
/// </summary>
/// <seealso cref="LinksConstantsBase"/>
public class LinksConstants<TLinkAddress> : LinksConstantsBase where TLinkAddress : IUnsignedNumber<TLinkAddress>
public class LinksConstants<TLinkAddress> : LinksConstantsBase where TLinkAddress : INumberBase<TLinkAddress>
{
private static readonly UncheckedConverter<ulong, TLinkAddress> _uInt64ToAddressConverter = UncheckedConverter<ulong, TLinkAddress>.Default;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Platform.Data.Numbers.Raw
/// <para></para>
/// </summary>
/// <seealso cref="IConverter{TLinkAddress}"/>
public class AddressToRawNumberConverter<TLinkAddress> : IConverter<TLinkAddress> where TLinkAddress : IUnsignedNumber<TLinkAddress>
public class AddressToRawNumberConverter<TLinkAddress> : IConverter<TLinkAddress> where TLinkAddress : INumberBase<TLinkAddress>
{
/// <summary>
/// <para>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Platform.Data.Numbers.Raw
/// <para></para>
/// </summary>
/// <seealso cref="IConverter{TLinkAddress}"/>
public class RawNumberToAddressConverter<TLinkAddress> : IConverter<TLinkAddress> where TLinkAddress : IUnsignedNumber<TLinkAddress>
public class RawNumberToAddressConverter<TLinkAddress> : IConverter<TLinkAddress> where TLinkAddress : INumberBase<TLinkAddress>
{
/// <summary>
/// <para>
Expand Down

0 comments on commit 11ae1c4

Please sign in to comment.