Skip to content

Commit

Permalink
type properties on unsupported fields will return object.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtule committed Nov 15, 2019
1 parent d7ad1ed commit d8ab78d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ obj

*.user
.idea/*
.vs/*
3 changes: 1 addition & 2 deletions DotNetDBF/DBFFieldType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ public static DbType FromNative(NativeDbType @byte)
case NativeDbType.Memo:
return DbType.AnsiString;
default:
throw new DBFException(
$"Unsupported Native Type {@byte}");
return DbType.Object;
}
}

Expand Down
2 changes: 1 addition & 1 deletion DotNetDBF/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public static Type TypeForNativeDBType(NativeDbType aType)
case NativeDbType.Memo:
return typeof(MemoValue);
default:
throw new ArgumentException("Unsupported Type");
return typeof(Object);
}
}
}
Expand Down

0 comments on commit d8ab78d

Please sign in to comment.