Commit Graph
594 Commits
Author SHA1 Message Date
Sergio Pedri 368111012d Removed callvirt-s in BufferWriterStream and AsStream cast 2020-10-06 13:41:57 +02:00
Sergio Pedri 8b5ed6edca Fixed a bug in IBufferWriterStream.WriteByte 2020-10-05 23:00:54 +02:00
Sergio Pedri 83f0672886 Fixed a build error in a unit test 2020-10-05 17:58:51 +02:00
Sergio Pedri fa8446fe92 Added unit tests for IBufferWriterStream 2020-10-05 17:56:42 +02:00
Sergio Pedri 7774fb0ad8 Added IBufferWriter<byte>.AsStream extension 2020-10-05 17:30:44 +02:00
Sergio Pedri 95c82d52de Added IBufferWriterStream type 2020-10-05 17:26:23 +02:00
Sergio Pedri 2ff3dd5207 Merge branch 'master' into performance/generic-memory-stream 2020-09-24 19:54:43 +02:00
msftbot[bot] 0a6b93b91c HighPerformance package improvements (#3351)
## Improvements for `Microsoft.Toolkit.HighPerformance`

<!-- Add a brief overview here of the feature/bug & fix. -->

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

<!-- - Bugfix -->
 - Feature
 - Optimization
<!-- - 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: -->

## Changes and fixes
<!-- Describe how was this issue resolved or changed? -->

- Improved codegen for exception throw methods
- Added custom `ArrayPool<T>` overloads to `MemoryOwner<T>`

## PR Checklist

Please check if your PR fulfills the following requirements:

- [X] Tested code with current [supported SDKs](../readme.md#supported)
- [ ] ~~Pull Request has been submitted to the documentation repository [instructions](..\contributing.md#docs). Link: <!-- docs PR link -->~~
- [ ] ~~Sample in sample app has been added / updated (for bug fixes / features)~~
    - [ ] ~~Icon has been created (if new sample) following the [Thumbnail Style Guide and templates](https://github.com/windows-toolkit/WindowsCommunityToolkit-design-assets)~~
- [ ] Tests for the changes have been added (for bug fixes / features) (if applicable)
- [X] Header has been added to all new source files (run *build/UpdateHeaders.bat*)
- [X] 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. -->
2020-09-24 17:29:21 +00:00
Sergio Pedri de4c07ae37 Merge branch 'master' into improvement/high-performance-tweaks 2020-09-24 18:52:51 +02:00
Sergio Pedri 3b2d78b4a3 Merge pull request #3429 from Sergio0694/feature/mvvm-preview2
[Feature] Microsoft.Toolkit.Mvvm package (Preview 2)
2020-09-24 13:22:21 +02:00
Sergio Pedri 305e37fd03 Code refactoring (not a fan of StyleCop here) 2020-09-24 12:15:37 +02:00
Sergio Pedri cc14122cd4 Fixed build error due to StyleCop 2020-09-24 12:10:49 +02:00
Sergio Pedri c7a9157c35 Merge branch 'master' into feature/mvvm-preview2 2020-09-24 11:46:05 +02:00
Sergio Pedri a1ac17dd6a Removed tracking field for HasErrors 2020-09-24 11:45:04 +02:00
Sergio Pedri f7bc644b70 Code refactoring in ObservableValidator 2020-09-24 11:37:40 +02:00
Rosario Pulella 0aa8a19052 Merge branch 'master' into improvement/high-performance-tweaks 2020-09-23 16:00:30 -04:00
msftbot[bot] ff29d52998 New BitHelper APIs (#3362)
## 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 new behavior?
<!-- Describe how was this issue resolved or changed? -->
This PR adds a few new APIs to the `BitHelper` class.
Follow up from this original thread on Twitter: https://twitter.com/SergioPedri/status/1275556765363568641.

These are the new APIs being included in this PR:

```csharp
namespace Microsoft.Toolkit.HighPerformance.Helpers
{
    public static class BitHelper
    {
        public static bool HasZeroByte(uint value);
        public static bool HasZeroByte(ulong value);
        public static bool HasByteEqualTo(uint value, byte target);
        public static bool HasByteEqualTo(ulong value, byte target);
    }
}
```

## PR Checklist

Please check if your PR fulfills the following requirements:

- [X] Tested code with current [supported SDKs](../readme.md#supported)
- [ ] ~~Pull Request has been submitted to the documentation repository [instructions](..\contributing.md#docs). Link: <!-- docs PR link -->~~
- [ ] ~~Sample in sample app has been added / updated (for bug fixes / features)~~
    - [ ] ~~Icon has been created (if new sample) following the [Thumbnail Style Guide and templates](https://github.com/windows-toolkit/WindowsCommunityToolkit-design-assets)~~
- [X] Tests for the changes have been added (for bug fixes / features) (if applicable)
- [X] Header has been added to all new source files (run *build/UpdateHeaders.bat*)
- [X] 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. -->
2020-09-22 16:24:21 +00:00
Michael Hawker MSFT (XAML Llama) 1452bbd151 Merge branch 'master' into feature/new-bithelper-apis 2020-09-21 14:09:27 -07:00
Sergio Pedri 0077e35ad9 Switched a Span<T>.CopyTo to Array.Copy 2020-09-18 23:48:31 +02:00
Sergio Pedri 6e8187536d Code tweaks to MemoryStream initialization 2020-09-18 21:59:53 +02:00
Sergio Pedri 74474856c4 Fixed incorrect XML docs 2020-09-17 15:51:59 +02:00
Sergio Pedri 3503ca00d7 Added #ifdef block for unneeded using directive 2020-09-17 14:34:07 +02:00
Sergio Pedri 1dd75babfb Removed unnecessary constructor parameter 2020-09-17 01:20:35 +02:00
Sergio Pedri f51ae95ce4 Added missing XML comments 2020-09-16 23:19:33 +02:00
Sergio Pedri 6f4b7bd214 Renamed file to match class name 2020-09-16 23:14:11 +02:00
Sergio Pedri fadd2bcae2 Fixed potential access violation with faulty MemoryManager<T>-s 2020-09-16 02:25:08 +02:00
Sergio Pedri 064e8d6236 Added missing file headers 2020-09-16 02:24:51 +02:00
Sergio Pedri dc100198ce Fixed inverted readonly setting for MemoryStream 2020-09-16 02:24:36 +02:00
Sergio Pedri a9ebf20524 Added empty stream as fallback path 2020-09-16 02:24:22 +02:00
Sergio Pedri d72f59b79b Switched MemoryStream to generic type 2020-09-16 02:24:02 +02:00
Sergio Pedri 4b03a4e2d2 Added T[] and MemoryManager<T> owner types 2020-09-16 02:23:38 +02:00
Sergio Pedri 31ba820e5e Merge branch 'master' into feature/mvvm-preview2 2020-09-15 20:29:34 +02:00
msftbot[bot] 49eb987ac9 Removed Deprecated for 7.0 (#3435)
Removed:
* Major components:
  * TabView/TabViewItem
  * HeaderedTextBlock
  * FacebookService and Microsoft.Toolkit.Uwp.Services project
  * RSS Parsers
* Smaller methods:
  * StringExtensions.ToSafeString
  * LinkedIn, Twitter and Weibo sync Logout methods.
  * ConnectedAnimations.SetListDataItemForNextConnectedAnnimation
  * TileControl.IsCompositionSupported
  * NotifyTaskCompletion
  * Singleton

This is still missing the update on the docs repo.

## Contributes towards #3062
## Fixes #3396

## 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: Removing dead code.


## What is the current behavior?
Obsolete classes marked as obsolete, but still exist in code.

## What is the new behavior?
Some classes/methods marked as obsolete are now removed from code.

## PR Checklist

Please check if your PR fulfills the following requirements:

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

This PR IS a breaking change, as instead of just providing a warning, any developers that uses the dead code will now get missing method/class exceptions.
2020-09-11 21:18:08 +00:00
Sergio Pedri 7f4dc9d53f Removed unnecessary List<T> allocation 2020-09-11 17:38:21 +02:00
Alexandre Zollinger Chohfi b5ae2329b1 Merge branch 'master' into removeObsolete7 2020-09-10 10:39:18 -07:00
Sergio Pedri f9fea5e60a Merge pull request #26 from Sergio0694/feature/mvvm-tasknotifier
TaskNotifier and TaskNotifier<T>
2020-09-10 19:08:21 +02:00
Sergio Pedri 10aeef3683 Updated external reference in XML docs 2020-09-09 01:30:09 +02:00
Sergio Pedri fe5d36c289 Added bool return value to ValidateProperty 2020-09-05 13:08:04 +02:00
Sergio Pedri c0404c47fa Merge branch 'master' into feature/mvvm-preview2 2020-09-04 23:00:33 +02:00
Sergio Pedri 1e1d145766 Suppressed false positive nullability warning
string.IsNullOrEmpty lacks annotations on .NET Standard 2.0
2020-09-04 22:24:03 +02:00
Sergio Pedri 2bea495163 Added support for entity-level errors 2020-09-04 19:17:49 +02:00
Sergio Pedri d75e2bed74 Added tests for ObservableValidator 2020-09-04 19:00:11 +02:00
Sergio Pedri d1baa4a67f Improved support for INotifyDataErrorInfo.GetErrors 2020-09-04 19:00:02 +02:00
Sergio Pedri a4b3141ae1 Bug fixes and minor optimization to ObservableValidator 2020-09-04 18:24:53 +02:00
Sergio Pedri df1016766b Removed unnecessary using directives 2020-09-04 12:07:04 +02:00
Sergio Pedri 329081ee2f Merge branch 'feature/mvvm-preview2' into feature/mvvm-tasknotifier 2020-09-04 12:04:15 +02:00
Sergio Pedri 188b641689 Minor codegen improvements for EqualityComparer<T> 2020-09-03 21:35:10 +02:00
Sergio Pedri 75cba8a66b Speed improvements in wrapping SetProperty<T> 2020-09-03 20:09:34 +02:00
Sergio Pedri 798ea71ce1 Minor codegen improvement in SetProperty with Action<T> 2020-09-03 12:55:44 +02:00
Sergio Pedri 05c60c3b42 Minor codegen improvements in TaskNotifier 2020-09-03 12:35:20 +02:00