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

1968 Commits

Author SHA1 Message Date
Sergio Pedri
7d5042516e Fixed new APIs on older runtimes 2020-10-08 22:58:07 +02:00
Sergio Pedri
e164324c0d Added Span2D<T>.Get[Row|Column] APIs 2020-10-08 22:58:06 +02:00
Sergio Pedri
4c927f50fc Added T[,].GetRowSpan extension 2020-10-08 22:58:06 +02:00
Sergio Pedri
4fdfdbca34 Refactored 2D array extensions with new enumerables 2020-10-08 22:57:49 +02:00
Sergio Pedri
551e6eaf10 Fixed a build error 2020-10-08 22:57:37 +02:00
Sergio Pedri
58fe8518fd Added [ReadOnly]RefEnumerable<T>.ToArray() 2020-10-08 22:57:37 +02:00
Sergio Pedri
a20fc660e4 Added [ReadOnly]RefEnumerable<T> types 2020-10-08 22:57:37 +02:00
Sergio Pedri
be059cb68c Implemented Span2D<T>.Slice API 2020-10-08 22:57:37 +02:00
Sergio Pedri
7d64a6a6d8 Implemented Span2D<T>.CopyTo(Span2D<T>) 2020-10-08 22:57:37 +02:00
Sergio Pedri
ba4bc57459 Minor code refactoring 2020-10-08 22:57:37 +02:00
Sergio Pedri
1f33ba3908 Added Memory2D<T>.TryGetMemory 2020-10-08 22:57:37 +02:00
Sergio Pedri
07d8a867cd Enabled Span2D<T>.TryGetSpan on .NET Standard < 2.1 2020-10-08 22:57:37 +02:00
Sergio Pedri
c38017c587 Added Memory2D<T> constructors with pitch 2020-10-08 22:57:37 +02:00
Sergio Pedri
542c6c396a More fixes to Memory2D<T> 2020-10-08 22:57:37 +02:00
Sergio Pedri
062f1a8b29 Added Memory<T> constructor to Memory2D<T> 2020-10-08 22:57:36 +02:00
Sergio Pedri
2c68799a30 Code refactoring using ThrowHelper 2020-10-08 22:57:36 +02:00
Sergio Pedri
6748b6340b Added ThrowHelper class for memory APIs 2020-10-08 22:57:36 +02:00
Sergio Pedri
9554b9def7 Span2D<T> refactoring, added Height/Width properties 2020-10-08 22:57:36 +02:00
Sergio Pedri
79afd9aa23 Draft for Memory2D<T>.Slice 2020-10-08 22:57:36 +02:00
Sergio Pedri
79c2d4f7f1 Reordered some APIs 2020-10-08 22:57:36 +02:00
Sergio Pedri
84f5798584 Enabled Memory2D<T> on all targets 2020-10-08 22:57:36 +02:00
Sergio Pedri
fd11c4eb7f Minor code refactoring 2020-10-08 22:57:36 +02:00
Sergio Pedri
7f3c429a13 Added IsCovariant<T> extensions for arrays 2020-10-08 22:57:36 +02:00
Sergio Pedri
ac43c04140 Enabled Span2D<T> on all targets 2020-10-08 22:57:36 +02:00
Sergio Pedri
adb612310c Disabled Memory2D<T> before .NET Standard 2.1 2020-10-08 22:57:36 +02:00
Sergio Pedri
1d2814900d Added more Memory2D<T> constructors 2020-10-08 22:57:36 +02:00
Sergio Pedri
c1dda99f2e Added some T[,,] extensions 2020-10-08 22:57:36 +02:00
Sergio Pedri
a7ffbe8fbb Fixed a bug in T[,].AsSpan() on .NET Standard 2.1 2020-10-08 22:57:36 +02:00
Sergio Pedri
ad8cfff3b7 Minor code refactoring 2020-10-08 22:57:35 +02:00
Sergio Pedri
aa7ce0de9b Improved Span2D<T> layout (removed 4 bytes) 2020-10-08 22:57:35 +02:00
Sergio Pedri
e373025881 Added missing Memory2D<T> header 2020-10-08 22:57:35 +02:00
Sergio Pedri
77a6e5b0ba Added initial version of the Memory2D<T> type 2020-10-08 22:57:35 +02:00
Sergio Pedri
5f3d885c82 Minor code tweaks to Span2D<T> 2020-10-08 22:57:35 +02:00
Sergio Pedri
d7d4a02708 Added initial version of the Span2D<T> type 2020-10-08 22:57:35 +02:00
Sergio Pedri
ee3e9581bb Added new constructors for Ref<T> and ReadOnlyRef<T> 2020-10-08 22:57:35 +02:00
Michael Hawker MSFT (XAML Llama)
541a13addc Merge branch 'master' into feature/array-extensions-deprecation 2020-10-08 13:49:22 -07:00
Michael Hawker MSFT (XAML Llama)
495299321d Merge pull request #3378 from Sergio0694/optimization/movsxd-removal
Codegen improvements (removed unnecessary movsxd ops)
2020-10-08 13:17:29 -07:00
Sergio Pedri
88bc66be05 Added StringPool info in package description 2020-10-08 11:51:23 +02:00
Sergio Pedri
eba2644782 Merge branch 'master' into optimization/movsxd-removal 2020-10-08 11:49:14 +02:00
Sergio Pedri
2c3736343e Fixed ObservableValidator.HasErrors unit test 2020-10-08 01:24:26 +02:00
Sergio Pedri
b734dd264b Enabled notification for ObservableValidator.HasErrors 2020-10-08 00:24:03 +02:00
Sergio Pedri
e5812bcf85 Fixed another missing property change notification 2020-10-08 00:02:59 +02:00
Sergio Pedri
a3c1f6e683 Fixed unit test, added missing notification 2020-10-08 00:01:46 +02:00
msftbot[bot]
91bc478c9b Mutable and subclassable version of ObservableGroup (#3526)
## Fixes #3519
<!-- Add the relevant issue number after the "#" mentioned above (for ex: Fixes #1234) which will automatically close the issue once the PR is merged. -->

<!-- Add a brief overview here of the feature/bug & fix. -->
Removes two restrictions from `ObservableGroup` to make it usable in more situations. In my case, I wanted to be able to rename the groups (for this I needed a mutable key), and I wanted to add properties on the group level (I needed to unseal it)
- Removes the immutable restriction on the `Key` property and makes the `Key` property observable.
- Removes the `sealed` keyword from `ObservableGroup`

## PR Type
What kind of change does this PR introduce?
<!-- Please uncomment one or more that apply to this PR. -->

<!-- - Bugfix -->
- Feature
<!-- - Code style update (formatting) -->
<!-- - Refactoring (no functional changes, no api changes) -->
<!-- - Build or CI related changes -->
<!-- - Documentation content changes -->
<!-- - Sample app changes -->
<!-- - Other... Please describe: -->


## What is the current behavior?
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
`ObservableGroup` has an immutable `Key` property
`ObservableGroup` is not inheritable


## What is the new behavior?
<!-- Describe how was this issue resolved or changed? -->
`ObservableGroup` has a mutable `Key` property
`ObservableGroup` is inheritable

## PR Checklist

Please check if your PR fulfills the following requirements:

- [ ] Tested code with current [supported SDKs](../readme.md#supported)
- [x] Pull Request has been submitted to the documentation repository [instructions](..\contributing.md#docs). Link: https://github.com/MicrosoftDocs/WindowsCommunityToolkitDocs/pull/394
- [x] Sample in sample app has been added / updated (for bug fixes / features) --> _no update needed_
    - [x] Icon has been created (if new sample) following the [Thumbnail Style Guide and templates](https://github.com/windows-toolkit/WindowsCommunityToolkit-design-assets) --> _not applicable_
- [x] Tests for the changes have been added (for bug fixes / features) (if applicable) --> _not applicable_
- [x] Header has been added to all new source files (run *build/UpdateHeaders.bat*) --> _not applicable_
- [ ] Contains **NO** breaking changes

<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. 
     Please note that breaking changes are likely to be rejected. -->


## Other information
2020-10-07 13:14:08 +00:00
hansmbakker
4a16d32626 code styling and perf improvement 2020-10-07 14:34:09 +02:00
Hans Bakker
c14c5dbe2f Code style suggestion
Co-authored-by: Sergio Pedri <sergio0694@live.com>
2020-10-07 09:48:57 +02:00
Hans Bakker
7a4ad709fa Code style suggestion
Co-authored-by: Sergio Pedri <sergio0694@live.com>
2020-10-07 09:48:48 +02:00
Hans Bakker
b5a3bcbe72 Prevent unnecessary OnPropertyChanged
Co-authored-by: Sergio Pedri <sergio0694@live.com>
2020-10-07 09:48:31 +02:00
Sergio Pedri
3451e4027e Added comment to explain the (IntPtr)(void*)(uint) casts 2020-10-07 01:29:09 +02:00
Sergio Pedri
f27fcfa299 Added cached args to async relay commands 2020-10-07 01:12:31 +02:00