From 47113273b5d1579902bec998c4dd4150c8596de7 Mon Sep 17 00:00:00 2001 From: Luchs Date: Mon, 24 Jul 2017 11:32:14 +0200 Subject: [PATCH] Fixing Compiler Warnings #2 --- src/Eurofurence.App.Common/Results/Result.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Eurofurence.App.Common/Results/Result.cs b/src/Eurofurence.App.Common/Results/Result.cs index 8c481019..7250f23a 100644 --- a/src/Eurofurence.App.Common/Results/Result.cs +++ b/src/Eurofurence.App.Common/Results/Result.cs @@ -18,8 +18,8 @@ public class Result : Result, IResult public T Value { get; set; } public static explicit operator T(Result r) => r.Value; - public static Result Ok(T value) => new Result {IsSuccessful = true, Value = value}; - public static Result Error(string errorCode, string errorMessage = "") + public new static Result Ok(T value) => new Result {IsSuccessful = true, Value = value}; + public new static Result Error(string errorCode, string errorMessage = "") => new Result { IsSuccessful = false, ErrorCode = errorCode, ErrorMessage = errorMessage }; } }