/// <summary> /// 将指定的OperateResult类型转化 /// </summary> /// <param name="result">原始的类型</param> /// <param name="byteTransform">数据转换方法</param> /// <returns>转化后的类型</returns> public static OperateResult <bool> GetBoolResultFromBytes(OperateResult <byte[]> result, IByteTransform byteTransform) { return(GetResultFromBytes(result, m => byteTransform.TransBool(m, 0))); }