DarthMazut / MochaLibrary

Just another MVVM library which gives you some abstract classes out-of-the-box.
0 stars 0 forks source link

ISettingsSection should expose abstract static factory method #2

Open DarthMazut opened 1 year ago

DarthMazut commented 1 year ago

With .NET 7 and C# 11 it's possible to declare static abstract methods. This can be leverage by ISettingsSection interface.

Instaed of current:

T settings = new();
await settings.FillValuesAsync(data);

it could be possible

T settings = T.FromString(data);