Skip to content

Commit e9b413c

Browse files
authored
Add line showcasing string-based with no T
1 parent 49ecd9b commit e9b413c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ maximum performance, minimal memory allocation typed identifiers.
1212

1313
```csharp
1414
public readonly partial record struct UserId : IStructId<Guid>;
15+
// String-based ID
16+
public readonly partial record struct ProductId : IStructId;
1517
```
1618

1719
Unlike other such libraries for .NET, StructId introduces several unique features:

0 commit comments

Comments
 (0)