UnitGenerator icon indicating copy to clipboard operation
UnitGenerator copied to clipboard

C# Source Generator to create value-object, inspired by units of measure.

Results 13 UnitGenerator issues
Sort by recently updated
recently updated
newest added

It'd be nice to have a `DebuggerDisplay` with the value as an option or by default.

Update to `IIncrementalGenerator` from `ISourceGenerator`.

`ISpanParsableParse` cannot be called because Guid is explicily implemented `ISpanParsable`. In #44, so we stopped generate it. However, It can call the `Guid.Parse` implementation by defining `class Proxy where T...

## tl;dr; Replace create-release with `Cysharp/Actions/.github/workflows/create-release.yaml`. This brings central managed release flow control. see: https://github.com/Cysharp/UnitGenerator/actions/runs/7814481326

## tl;dr; Automate suggestion for update GitHub Actions. ## Motivation Important actions are centrally managed on Cysharp/Actions, however few pieces of direct actions usage is managed by own repo. Let's...

It seems a null check is needed here: https://github.com/Cysharp/UnitGenerator/blob/ad84e766a282e070dcd6c5554eed4825abc1ced1/src/UnitGenerator/SourceGenerator.cs#L476 I suggest using something like: `return value?.GetHashCode() ?? 0;`. Thank you for the great work!

When using UnitGenerator in Unity6, the following error is output to the console at compile time. ``` Path could not be found for script compilation file ‘UnitGenerator/UnitGenerator.SourceGenerator/UnitOfAttribute.cs’ ``` However, it...

Currently the generator implements the generic `IComparable` but not the untyped [`IComparable`](https://learn.microsoft.com/en-us/dotnet/api/system.icomparable?view=net-8.0) interface. This is asymmetric to equality, where both regular `Equals(object)` and the typed `Equals(T)` are both overridden. It...

It works: ```csharp using UnitGenerator; [UnitOf] partial struct Ok; ``` But, It doesn't work: ```csharp [UnitGenerator.UnitOf] partial struct Ng; ``` .NET8 UnitGenerator 1.6.2

UnitOf with ParseMethod option does not accept the type declared in other assemblies. A solution has 2 projects: - OtherLib (.NET8 ) ```xml all runtime; build; native; contentfiles; analyzers; buildtransitive...