dotnet
dotnet copied to clipboard
.NET Community Toolkit is a collection of helpers and APIs that work for all .NET developers and are agnostic of any specific UI platform. The toolkit is maintained and published by Microsoft, and par...
### Describe the bug **TL;DR**: - `Guard.IsNotNull` and `Guard.IsNotNullOrEmpty` need a `ValidatedNotNull` attribute, in addition to `NotNull`, on their first parameter. - This will prevent Roslyn analyzers from issuing [warning...
**Closes #742** ## Overview `Memory2D` and `ReadOnlyMemory2D` instances created from a `MemoryManager` calculate the `offset` field in units of `T` instead of `byte` in the constructor. Since [this fix]( https://github.com/CommunityToolkit/dotnet/pull/675/commits/76da6895cad4db7209495efb35f4d7025c7675a4)...
### Describe the bug I'm trying to use the `FlowExceptionsToTaskScheduler` parameter on a : ```csharp [RelayCommand(FlowExceptionsToTaskScheduler = true)] private async Task RefreshOrdersAsync() { throw new Exception(); } ``` and retrieve...
### Overview In Xamarin bindings to UI elements have to be invoked on main thread no matter what context the changes were invoked on. Proposed solution is to add virtual...
### Overview It would be nice if the following methods could get a `protected` modifier instead of `private` so these methods can be accessed from derived classes aswell. I have...
### Overview Assume that you are developing an observable model of a setting that contains a set of fields, decorated by the `ObservableProperty` attribute: ```csharp [ObservableObject] public sealed partial class...
### Describe the bug If a class implements an interface that itself inherits `INotifyPropertyChanged` or `INotifyPropertyChanging` but does not implement the interface methods, code-generation aborts. Current tests only test diagnostics...
This is my proposed pull-request submission: Update the ObservableProperty attribute by adding an overload that allows the user to specify the property name that is generated from the private member...
This PR adds the .NET 8 TFM to all projects, enables tests on .NET 8, and adds AOT annotations where necessary. ## PR Checklist - [X] Created a feature/dev branch...
### Describe the bug I am working with net 8 I have the following code: mapa.MoveToRegion(MapSpan.FromCenterAndRadius(new Location(41.21301, 1.73250), Distance.FromMiles(0.5))); string cadenaSituacion = "41º 12.8 N' 001º 43.9' E"; var pin...