Open
Description
IMO we should move it to .net standard (it will help us with future .net core movement and re-use it in another project that are not Umbraco related) and rewrite the Umbraco extension for TryConvertTo. I saw implementation and lot of logic use internal (.net) mechanism, but just the model Attempt comes from Umbraco.
We can also look at:
Here Umbraco code base links:
- https://github.com/umbraco/Umbraco-CMS/blob/v8/contrib/src/Umbraco.Core/AttemptOfTResult.cs
- https://github.com/umbraco/Umbraco-CMS/blob/v8/contrib/src/Umbraco.Core/Attempt.cs
- https://github.com/umbraco/Umbraco-CMS/blob/v8/contrib/src/Umbraco.Core/AttemptOfTResultTStatus.cs
- https://github.com/umbraco/Umbraco-CMS/blob/a0aad045fb7267650b4330c26d391d1788cec7fd/src/Umbraco.Core/ObjectExtensions.cs#L75
Or we can find another way, not using TryConvert -> maybe some another library.
What do you think guys @trt @mzajkowski
Metadata
Metadata
Assignees
Labels
No labels