byte[] , byte array and array<byte> are synonyms, but in this context only the latter will work without parentheses:
let dbType (x:obj) = match x with | :? (byte[]) -> DbType.Binary | :? (byte array) -> DbType.Binary // equivalent to above | :? array<byte> -> DbType.Binary // equivalent to above | :? int64 -> DbType.Int64 | _ -> DbType.Object
ildjarn
source share