File tree Expand file tree Collapse file tree
ManagedCode.Communication Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 <PackageLicenseExpression >MIT</PackageLicenseExpression >
1414 <PackageReadmeFile >README.md</PackageReadmeFile >
1515 <Product >Managed Code - Communication</Product >
16- <Version >0.0.4 </Version >
17- <PackageVersion >0.0.4 </PackageVersion >
16+ <Version >0.0.5 </Version >
17+ <PackageVersion >0.0.5 </PackageVersion >
1818 </PropertyGroup >
1919 <PropertyGroup Condition =" '$(GITHUB_ACTIONS)' == 'true'" >
2020 <ContinuousIntegrationBuild >true</ContinuousIntegrationBuild >
Original file line number Diff line number Diff line change @@ -41,9 +41,14 @@ public static Result Fail(Exception? error)
4141 return new Result ( error ) ;
4242 }
4343
44+ public static Result < T > Fail < T > ( Exception ? error )
45+ {
46+ return new Result < T > ( error ) ;
47+ }
48+
4449 public static Result < T > Fail < T > ( T result , Exception ? error )
4550 {
46- return new Result < T > ( true , result ) ;
51+ return new Result < T > ( false , result ) ;
4752 }
4853
4954 public static Result Fail ( )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ public class Result<T> : Result
66{
77 public T ? Value { get ; }
88
9- protected Result ( Exception ? error ) : base ( error )
9+ public Result ( Exception ? error ) : base ( error )
1010 {
1111 }
1212
You can’t perform that action at this time.
0 commit comments