Closed vesnx closed 7 months ago
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.
why doesn't MS look at this?
Trying to help here:
... .ToDictionary(x => x.ConstructorParameterName, ...
, x.ConstructorParameterName is a nullable string.
=> To suppresse the warning, ... .ToDictionary(x => x.ConstructorParameterName!, ...
(adding the bang! operator) should be enough. sure, however it's not my code
Of course. You may create a PR for this.
Fixed in #232.
I get a compiler warning in MemoryPack.Generator that perhaps needs consideration The class: MemoryPackGenerator.Emitter.cs
The code:
Severity Code Description Project File Line Suppression State Warning CS8714 The type 'string?' cannot be used as type parameter 'TKey' in the generic type or method 'Enumerable.ToDictionary<TSource, TKey, TElement>(IEnumerable, Func<TSource, TKey>, Func<TSource, TElement>, IEqualityComparer?)'. Nullability of type argument 'string?' doesn't match 'notnull' constraint. MemoryPack.Generator ..\src\MemoryPack.Generator\MemoryPackGenerator.Emitter.cs 899 Active