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
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
Sergio Pedri
a99f9e9098
Fixed a typo
2020-06-04 15:18:27 +02:00
Sergio Pedri
e2a2e93a4a
Improved codegen in generated Guard APIs
2020-06-04 15:09:34 +02:00
Sergio Pedri
44fd676ee9
Improved codegen in non-generated Guard APIs
2020-06-04 15:03:26 +02:00
Sergio Pedri
19624ca1e6
Removed unnecessary attributes
2020-06-04 14:44:17 +02:00
Sergio Pedri
c12d1ea978
Added support for proxy fields with LINQ expression
2020-06-02 14:24:48 +02:00
Sergio Pedri
407229599a
Tweaked some XML docs
2020-06-02 03:02:19 +02:00
Sergio Pedri
77727a3754
Updated Microsoft.Extensions.DependencyInjection package
2020-06-02 03:00:58 +02:00
Michael Hawker MSFT (XAML Llama)
a739087be7
Merge pull request #3315 from windows-toolkit/mhawker/deprecate-6.1
...
Deprecate TabView, RadialGradientBrush, Singleton, FacebookService
2020-05-30 01:53:34 -07:00
michael-hawker
2b2f33f5e2
Deprecate TabView, RadialGradientBrush, Singleton, FacebookService
2020-05-29 14:38:49 -07:00
Michael Hawker MSFT (XAML Llama)
438ac8c89e
Merge pull request #3307 from windows-toolkit/pdbfix
...
Removed full pdb workaround, switching to portable pdbs.
2020-05-28 13:41:55 -07:00
Matthew and Sergio Pedri
0db6db9672
Update Microsoft.Toolkit/Extensions/TypeExtensions.cs
...
Co-authored-by: Sergio Pedri <sergio0694@live.com >
2020-05-28 17:20:29 +01:00
Alexandre Zollinger Chohfi
11783dc7d0
Removed full pdb workaround, switching to portable pdbs.
2020-05-28 00:05:04 -07:00
Sergio Pedri
21ccf993c3
Moved Mvvm tests to shared project
2020-05-26 22:37:43 +02:00
Sergio Pedri
50db60d983
Merge branch 'windows-toolkit-dev/7.0.0' into feature/mvvm-apis
2020-05-26 22:13:40 +02:00
Sergio Pedri
30fcf3bbfc
Merge branch 'dev/7.0.0' of https://github.com/windows-toolkit/WindowsCommunityToolkit into windows-toolkit-dev/7.0.0
2020-05-26 22:13:09 +02:00
Sergio Pedri and Michael Hawker MSFT
ca142880b9
Optimization/grouped extensions ( #3260 )
...
* Added ObservableGroup<TKey, TValue> debugger display
* Optimized the readonly ObservableGroupedCollection extensions
* Minor tweaks to RemoveGroup<TKey, TValue>
* Finished refactoring of observable collections extensions
* Minor style tweaks
Co-authored-by: Michael Hawker MSFT (XAML Llama) <michael.hawker@outlook.com >
2020-05-26 10:28:23 -07:00
Sergio Pedri
c554cdd5db
Fixed Guard APIs CS8777 warnings ( #3296 )
...
* Added DoesNotReturnAttribute copy
* Added [DoesNotReturn] attributes to throw methods
* Removed warnings on .NET Standard 2.0
2020-05-26 09:10:33 -07:00
Matthew and Sergio Pedri
5f850eabe5
Update Microsoft.Toolkit/Microsoft.Toolkit.csproj
...
Co-authored-by: Sergio Pedri <sergio0694@live.com >
2020-05-18 21:07:14 +01:00
Matthew and Sergio Pedri
bf36fd867e
Update Microsoft.Toolkit/Extensions/TypeExtensions.cs
...
Co-authored-by: Sergio Pedri <sergio0694@live.com >
2020-05-18 21:07:09 +01:00
Matthew and Sergio Pedri
ac026bd3c1
Update Microsoft.Toolkit/Extensions/TypeExtensions.cs
...
Co-authored-by: Sergio Pedri <sergio0694@live.com >
2020-05-18 21:07:02 +01:00
Matthew and Sergio Pedri
71054656d2
Update Microsoft.Toolkit/Extensions/TypeExtensions.cs
...
Co-authored-by: Sergio Pedri <sergio0694@live.com >
2020-05-18 21:06:57 +01:00
Matthew
b50b2fa513
Add .net standard 1.4 target to Microsoft.Toolkit project.
2020-05-18 20:33:04 +01:00
Sergio Pedri
1bc707e36f
Minor XML docs improvements
2020-05-17 00:46:59 +02:00
Sergio Pedri
3aede8d081
Renamed request extensions file
2020-05-16 23:51:22 +02:00
Sergio Pedri
8f8b47fdd0
Removed original Unit type
2020-05-16 23:48:40 +02:00
Sergio Pedri
d4c221c55f
Removed .NET Standard 2.1 target
2020-05-16 23:44:07 +02:00
Sergio Pedri
6281fe5971
Removed unnecessary interface methods
2020-05-16 23:43:40 +02:00
Sergio Pedri
b57fea00ee
Added new IMessenger extensions
2020-05-16 23:42:46 +02:00
Sergio Pedri
7438772cca
Copied the Unit type to the extensions class
2020-05-16 23:37:22 +02:00
Sergio Pedri
d9d3c62ae4
Renamed IMessengerExtensions class
2020-05-16 23:19:12 +02:00
Sergio Pedri
147d6faef4
Added default implementations to IMessenger
2020-05-16 23:15:38 +02:00
Sergio Pedri
2a16d45d1e
Added .NET Standard 2.1 target
2020-05-16 22:52:05 +02:00
Sergio Pedri
99c77311e8
Enabled ViewModelBase.IsActive broadcast
2020-05-16 22:31:49 +02:00
Sergio Pedri
cbb71eceb3
Code refactoring to ObservableObject and ViewModelBase
2020-05-16 22:30:29 +02:00