dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.05k stars 1.73k forks source link

[IPreferences] Make support types public #11871

Open marcoablanco opened 1 year ago

marcoablanco commented 1 year ago

Description

It will be good if i can check if my type is supported by IPreferences in Essentials for previous serialization or another workaround.

So i suggest make public SupportedTypes and addit to IPreferences interface:

https://github.com/dotnet/maui/blob/main/src/Essentials/src/Preferences/Preferences.shared.cs#L185

Public API Changes

public interface IPreferences
{
  Type[] IPreferences.SupportedTypes { get; }
}

Intended Use-Case

I want save my own type.

ghost commented 1 year ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.