Skip to content

Commit 5be33df

Browse files
committed
Add comments on removed template code on apply
1 parent 7ff3418 commit 5be33df

File tree

8 files changed

+10
-0
lines changed

8 files changed

+10
-0
lines changed

readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ file partial record struct TSelf(TValue Value)
260260
public static explicit operator TSelf(TValue value) => new(value);
261261
}
262262

263+
// This will be removed when applying the template to each user-defined struct id.
263264
file record struct TValue;
264265
```
265266

@@ -294,6 +295,7 @@ file partial record struct TSelf(TValue Value) : IComparable<TSelf>
294295
public static bool operator >=(TSelf left, TSelf right) => left.Value.CompareTo(right.Value) >= 0;
295296
}
296297

298+
// This will be removed when applying the template to each user-defined struct id.
297299
file record struct TValue : IComparable<TValue>
298300
{
299301
public int CompareTo(TValue other) => throw new NotImplementedException();

src/StructId/Templates/Comparable.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ file partial record struct TSelf(TValue Value) : IComparable<TSelf>
2323
public static bool operator >=(TSelf left, TSelf right) => left.Value.CompareTo(right.Value) >= 0;
2424
}
2525

26+
// This will be removed when applying the template to each user-defined struct id.
2627
file record struct TValue : IComparable<TValue>
2728
{
2829
public int CompareTo(TValue other) => throw new NotImplementedException();

src/StructId/Templates/ConversionT.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ file partial record struct TSelf(TValue Value)
99
public static explicit operator TSelf(TValue value) => new(value);
1010
}
1111

12+
// This will be removed when applying the template to each user-defined struct id.
1213
file record struct TValue;

src/StructId/Templates/EntityFrameworkValueConverter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public TValue_ValueConverter(ConverterMappingHints? mappingHints = null)
1515
: base(id => id.ToString(null, null), value => TValue.Parse(value, null), mappingHints) { }
1616
}
1717

18+
// This will be removed when applying the template to each user-defined struct id.
1819
file partial struct TValue : IParsable<TValue>, IFormattable
1920
{
2021
public static TValue Parse(string s, IFormatProvider? provider) => throw new NotImplementedException();

src/StructId/Templates/NewableT.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ file partial record struct TSelf(TValue Value) : INewable<TSelf, TValue>
99
public static TSelf New(TValue value) => new(value);
1010
}
1111

12+
// This will be removed when applying the template to each user-defined struct id.
1213
file record struct TValue;

src/StructId/Templates/ParsableT.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? prov
2424
}
2525
}
2626

27+
// This will be removed when applying the template to each user-defined struct id.
2728
file record struct TValue : IParsable<TValue>
2829
{
2930
public static TValue Parse(string s, IFormatProvider? provider) => throw new NotImplementedException();

src/StructId/Templates/SpanFormattable.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public readonly bool TryFormat(Span<char> destination, out int charsWritten, Rea
1212
=> ((ISpanFormattable)Value).TryFormat(destination, out charsWritten, format, provider);
1313
}
1414

15+
// This will be removed when applying the template to each user-defined struct id.
1516
file partial record struct TSelf
1617
{
1718
// This partial is provided by Formattable template

src/StructId/Templates/SpanParsable.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ public static bool TryParse(ReadOnlySpan<char> input, IFormatProvider? provider,
2424
}
2525
}
2626

27+
// This will be removed when applying the template to each user-defined struct id.
2728
file partial record struct TSelf
2829
{
2930
public static TSelf Parse(string s, IFormatProvider? provider) => throw new NotImplementedException();
3031
public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, [MaybeNullWhen(false)] out TSelf result) => throw new NotImplementedException();
3132
}
3233

34+
// This will be removed when applying the template to each user-defined struct id.
3335
file record struct TValue : ISpanParsable<TValue>
3436
{
3537
public static TValue Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => throw new NotImplementedException();

0 commit comments

Comments
 (0)