-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Шевелев Георгий #180
base: master
Are you sure you want to change the base?
Шевелев Георгий #180
Conversation
TagCloudResult/Result.cs
Outdated
@@ -0,0 +1,124 @@ | |||
namespace TagCloudResult | |||
{ | |||
public class None |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
TagCloudResult/Result.cs
Outdated
} | ||
public static implicit operator Result<T>(T v) |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
TagCloudResult/Result.cs
Outdated
} | ||
public static Result<None> Ok() |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
TagCloudResult/Program.cs
Outdated
{ | ||
public static void Main(string[] args) | ||
{ | ||
var settings = Parser.Default.ParseArguments<Settings>(args).Value; |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
TagCloudResult/Drawer/Drawer.cs
Outdated
var colorResult = Result.Of(() => Color.FromName(name)); | ||
return !colorResult.IsSuccess |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
TagCloudResult/Drawer/Drawer.cs
Outdated
var backColorResult = GetColorFromName(settings.BackColor) | ||
.RefineError("Wrong background color"); | ||
if (!backColorResult.IsSuccess) | ||
return Result.Fail<Image>(backColorResult.Error); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
No description provided.