1
0
mirror of https://github.com/chylex/.NET-Community-Toolkit.git synced 2024-11-22 10:42:46 +01:00
Commit Graph

1968 Commits

Author SHA1 Message Date
Sergio Pedri
449d1547ab Added IDictionarySlim<TKey, TValue>.TryRemove API 2020-06-24 17:11:31 +02:00
Sergio Pedri
d10e6aea8a Improved nullability annotations 2020-06-24 17:09:16 +02:00
Sergio Pedri
acafc5d705 Fixed a typo 2020-06-24 13:57:00 +02:00
Sergio Pedri
9b64d626cc Added override support for events in ObservableObject 2020-06-24 13:08:44 +02:00
Sergio Pedri
822913e400 Added tests for HasByteEqualTo 2020-06-24 02:08:39 +02:00
Sergio Pedri
6ceab9613f Added HasByteEqualTo APIs 2020-06-24 02:02:15 +02:00
Sergio Pedri
4d2e2a4eaf Added tests for HasZeroByte 2020-06-24 01:40:55 +02:00
Sergio Pedri
fb695bd9cf Added HasZeroByte APIs 2020-06-24 01:30:07 +02:00
Sergio Pedri
658d973e6b Minor code tweak 2020-06-23 13:39:10 +02:00
Sergio Pedri
7102235a3e Merge branch 'dev/7.0.0' into feature/mvvm-apis 2020-06-23 13:26:38 +02:00
Sergio Pedri
c18f5459ca Fixed bugs in two unit tests 2020-06-23 13:18:10 +02:00
Sergio Pedri
9848fdb22d Moved al messenger-related functionality to ViewModelBase 2020-06-22 19:12:57 +02:00
Sergio Pedri
0237406415 Merge branch 'master' into feature/throw-helpers 2020-06-22 18:08:08 +02:00
Sergio Pedri
e46c3d5d24 Merge branch 'master' into improvement/high-performance-tweaks 2020-06-22 18:07:54 +02:00
Sergio Pedri
5787b319f4 Code refactoring, added TaskResultConverter 2020-06-22 18:05:27 +02:00
Michael Hawker MSFT (XAML Llama)
76c37fe134 Merge pull request #3350 from Sergio0694/bugfix/hp-package-ci
Reduce memory pressure in CI tests for HP package
2020-06-22 09:03:23 -07:00
Sergio Pedri
79eae3301f Deprecated NotifyTaskCompletion<TResult> type 2020-06-22 17:51:06 +02:00
Sergio Pedri
50902561f0 Added new Set<T> overloads with callback 2020-06-21 00:09:52 +02:00
Sergio Pedri
00dc964bb5 Removed unnecessary attributes 2020-06-20 23:46:52 +02:00
Sergio Pedri
589cfb1a15 Updated NuGet packages, tweaked Mvvm .csproj 2020-06-20 23:41:26 +02:00
Sergio Pedri
abe9b570c4 Merge branch 'dev/7.0.0' into feature/mvvm-apis 2020-06-20 23:31:51 +02:00
Sergio Pedri
5d578f6209 Added ArrayTypeMismatchException throw APIs 2020-06-17 16:21:57 +02:00
Sergio Pedri
05f8b3919d Added unit tests for custom array pool overloads 2020-06-16 18:13:44 +02:00
Sergio Pedri
8ae073bbcb Added tests for invalid allocation sizes 2020-06-16 17:55:59 +02:00
Sergio Pedri
53d5a3dd9c Minor tweaks to ArrayPoolBufferWriter<T> 2020-06-16 17:42:41 +02:00
Sergio Pedri
81ce8b86cb Added custom pool to SpanwOwner<T> 2020-06-16 17:37:30 +02:00
Sergio Pedri
2411bb60ad Minor codegen improvement to Box<T> 2020-06-16 17:25:40 +02:00
Sergio Pedri
715aa86f0d Added custom pool to ArrayPoolBufferWriter<T> 2020-06-16 17:24:06 +02:00
Sergio Pedri
de8fa68e86 Added custom ArrayPool<T> field to Memoryowner<T> 2020-06-16 17:16:18 +02:00
Sergio Pedri
da37c6f86a Removed unnecessary attributes, improved codegen 2020-06-16 16:51:15 +02:00
Sergio Pedri
6c454d9b0b Skipped most expensive Count test in managed case 2020-06-16 01:04:49 +02:00
Sergio Pedri
4e45819786 Added more exceptions 2020-06-15 03:09:30 +02:00
Sergio Pedri
92f9782012 Added overloads with inner exception parameters 2020-06-15 02:44:17 +02:00
Sergio Pedri
de04895bdf Simplified XML docs 2020-06-15 02:29:21 +02:00
Sergio Pedri
66cf9240eb Removed some throw helpers according to docs
See https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/using-standard-exception-types
2020-06-14 22:19:01 +02:00
Sergio Pedri
d91d9cab63 Added more throw helper APIs 2020-06-14 22:07:28 +02:00
Sergio Pedri
893d9d6da7 Made current thrower public, minor API additions 2020-06-14 21:54:05 +02:00
Sergio Pedri
244f2f3009 Improved construction of ArgumentOutOfRangeException-s 2020-06-14 20:54:51 +02:00
Sergio Pedri
b759ed7f3b Initial update on ThrowHelper visibility 2020-06-14 20:46:32 +02:00
Sergio Pedri
b108a1d6a5 Added missing attributes/annotations 2020-06-14 20:42:13 +02:00
Michael Hawker MSFT (XAML Llama)
6e4f8ee71f Merge pull request #3341 from Sergio0694/optimization/struct-enumerators
Optimized struct enumerators
2020-06-12 14:28:38 -07:00
Sergio Pedri
0677e1b098 Reverted changes for 2D array enumerables
- The one for rows is not needed from .NET Core 2.1 and above
- The other has the extra ToArray API which needs the initial values to remain available, and the type to be readonly
2020-06-11 02:15:43 +02:00
Sergio Pedri
45daebe6ae Optimized array enumerables 2020-06-11 02:04:14 +02:00
Sergio Pedri
07c587f847 Optimized Span<T> enumerables 2020-06-11 02:02:22 +02:00
John Kelly
6626eddfd6 Optimise Guard.IsBitwiseEqual (#3325)
* Improve Guard.IsBitwiseEqualTo performance

* Fix inlining

* Fix incorrect bool

* Update Microsoft.Toolkit/Diagnostics/Guard.Comparable.Generic.cs

Co-authored-by: Sergio Pedri <sergio0694@live.com>

* Update Microsoft.Toolkit/Diagnostics/Guard.Comparable.Generic.cs

Co-authored-by: Sergio Pedri <sergio0694@live.com>

* Add suggestions

Apologies for multiple commits I'm.on a phone

* Add new tests

* Change from SRCS.Unsafe to unsafe for consistency

* Get analyzer to shut up

* Fix silly mistake

* Fix formatting

* moar formatting

* Update Microsoft.Toolkit/Diagnostics/Guard.Comparable.Generic.cs

Co-authored-by: Sergio Pedri <sergio0694@live.com>

* Update Guard.Comparable.Generic.cs

Co-authored-by: Kyaa-dost <35208324+Kyaa-dost@users.noreply.github.com>
Co-authored-by: Sergio Pedri <sergio0694@live.com>
Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
2020-06-05 16:49:00 -07:00
Sergio Pedri
a3b60b921d Minor bug fix 2020-06-05 21:46:41 +02:00
Sergio Pedri
42eaebe5c7 Minor API tweaks and comments improvements 2020-06-05 21:40:48 +02:00
Sergio Pedri
d3037a5872 Code refactoring, improved Request pattern APIs 2020-06-05 19:59:12 +02:00
Michael Hawker MSFT (XAML Llama)
1b6f15e76e Merge pull request #3323 from Sergio0694/improvement/guard-api-codegen
Improved codegen in Guard APIs
2020-06-04 10:32:33 -07:00
Sergio Pedri
cd0b35f245 Improved value type parameters when canExecute is not used 2020-06-04 18:58:59 +02:00