You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check if we want to add auto deconstruct like var (isOk, value) = UpdateDb(entity);
Check if we can add a Result variant without error message as most of the time we return a message but never use it. Instead we should log the message where the error happened. For cases where we want to return a message it would be better to have a Result<TValue, TErrorEnum> where TErrorEnum must be a enum describing the type of error. For that type a message might make more sense. For simple cases check if the old if (!TryParse("test", out Guid? id)) makes more sense
The text was updated successfully, but these errors were encountered:
Felix-CodingClimber
changed the title
Make Result<T> to Result conversion explicit, to prevent loosing of information.
Improve Result types
Jul 12, 2024
Make Result to Result conversion explicit, to prevent loosing of information. Check if we can add a .ToResult convertion method.
DotNetElements/src/DotNetElements.Core/Core/Result/Result.cs
Line 117 in 6777ed0
Check if we want to add auto deconstruct like
var (isOk, value) = UpdateDb(entity);
Check if we can add a Result variant without error message as most of the time we return a message but never use it. Instead we should log the message where the error happened. For cases where we want to return a message it would be better to have a Result<TValue, TErrorEnum> where TErrorEnum must be a enum describing the type of error. For that type a message might make more sense. For simple cases check if the old
if (!TryParse("test", out Guid? id))
makes more senseThe text was updated successfully, but these errors were encountered: