Linus Hamlin
Linus Hamlin
I tried to consolidate some code in TimeSpanFormat (and minor change in DateTimeFormat). No big performance improvements but I checked for regressions. Major gain for this PR is code is...
# Background and Motivation Suggestion for the generic math. The mentioned methods are available in Math and MathF classes. I think it would be nice to add these to the...
### Background and motivation Since `decimal` class is documented to preserve trailing zeros, it would be nice to have a way to trim them off. I suggest the name `Canonicalize`...
### Background and motivation There is no out of the box solution to create a `ReadOnlySequence` from multiple `ReadOnlyMemory` ### API Proposal ```csharp namespace System.Buffers; public readonly struct ReadOnlySequence {...
### Background and motivation There is currently no intuitive way of getting the length of BinaryData, using a workaround ToArray or ToMemory it is not easy to assume it will...
### Background and motivation Many of the integer types available for other operations are missing for Math.BigMul ### API Proposal ```csharp namespace System; public static class Math { public static...
Question: What is best practice to find an operator overload method in reflection? I believe the names of the methods are for example "op_Addition" and such, but I can't find...
### Background and motivation There are multiple places in the runtime where we do a DivRem. If we can't get the quotient and remainder in one go using intrinsics or...
### Description If `BitArray.CopyTo` is invoked with: - destination array being an `int[]` (does not reproduce with `bool[]` nor `byte[]`) - the destination array is too small - bit count...
### Background and motivation There is a number of methods in `Calendar` class that could have overloads support `DateOnly`, in addition to `DateTime`. This would be nice for code where...