Corniel Nobel

Results 65 issues of Corniel Nobel

Currently, the static methods `IsValid(string str)` return false for `null`, white-space, and if parsing that input would fail. However, with the same argument that a value representing the empty state...

bug
question

It is far from trivial to support it, and I see no way to avoid double implementations. Specially supporting `ICustomFormatter` is potential challenging, but I gave Issue #244 a try....

When dealing with Domain-Driven Design, the default set of collections offered by .NET are not sufficient. It would be nice to have a generic reusable collection of Entities that offers...

feature request

Why at #5741 I had the idea that the code would have been easier if there was something possible like the following: ``` C# var conditional = (Language.)Syntax.As.Conditional(epxression); return Syntax.IsNullLiteral(conditional.WhenTrue)...

As @martin-strecker-sonarsource was working on #5971, I thought It would be nice to add a fix for this rule (for C#). From the fix's perspective the test case file is...

As proposed by the community: [https://community.sonarsource.com/t/c-find-missing-enumeratorcancellation-parameter/58675](Aysnc methods using yield should have a decorated cancellation token). # Descrption CancellationToken parameters with the [[EnumeratorCancellation]](https://docs.microsoft.com/en-us/dotnet/api/system.runtime.compilerservices.enumeratorcancellationattribute) attribute are needed on methods, returning `IAsyncEnumerable` and...

Type: New Feature
Area: C#

As mentioned in #243, I noticed that in some projects additional files (and other properties as well I guess, but that was not what I was investigating) are not recognized....

While debugging #244, I noticed that debugging which compiler properties where active was not really clear. So similar to #243, I introduced two dedicated (read-only) types that contain the properties...

While debugging the solution for a bug I stumbled on (more on that later), I noticed that it is quite hard to check what is going in the parsing process...

### Background and motivation There is a separate package to assert on `NewtonSoft.Json`, but given that `System.Text.Json` is replacing the other more and more, I would expect me not being...

feature