示例#1
0
		public static S.Exception FromError<T>(this ST.Result<T> @this)
		where T : object {
			Assert.IsType<ST.Error<T>>(@this);
			return ((ST.Error<T>)@this).Value;
		}
示例#2
0
		public static T FromOk<T>(this ST.Result<T> @this)
		where T : object {
			Assert.IsType<ST.Ok<T>>(@this);
			return ((ST.Ok<T>)@this).Value;
		}