Skip to content

Commit

Permalink
Constraint TLinkAddress as struct
Browse files Browse the repository at this point in the history
  • Loading branch information
FreePhoenix888 committed Feb 1, 2022
1 parent df17739 commit c9edc61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion csharp/Platform.Data.Sequences/ISequenceAppender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Platform.Data.Sequences
{
public interface ISequenceAppender<TLinkAddress>
public interface ISequenceAppender<TLinkAddress> where TLinkAddress : struct
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
TLinkAddress Append(TLinkAddress sequence, TLinkAddress appendant);
Expand Down
2 changes: 1 addition & 1 deletion csharp/Platform.Data.Sequences/ISequenceWalker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Platform.Data.Sequences
{
public interface ISequenceWalker<TLinkAddress>
public interface ISequenceWalker<TLinkAddress> where TLinkAddress : struct
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
IEnumerable<IList<TLinkAddress>?> Walk(TLinkAddress sequence);
Expand Down

0 comments on commit c9edc61

Please sign in to comment.