示例#1
0
 public Stream OpenMemo()
 {
     if (string.IsNullOrEmpty(memoPath))
     {
         throw new InvalidOperationException($"No associated MEMO-file ({DbfFilePathHelper.GetMemoExtension(Path.GetExtension(dbfPath))}) found.");
     }
     return(new FileStream(memoPath, FileMode.Open, FileAccess.Read, FileShare.Read | FileShare.Write | FileShare.Delete, short.MaxValue, FileOptions.RandomAccess));
 }
示例#2
0
 public Dbf(string filePath, Encoding encoding)
     : this(filePath, DbfFilePathHelper.GetMemoPath(filePath), encoding)
 {
 }
示例#3
0
 public Dbf(string filePath)
     : this(filePath, DbfFilePathHelper.GetMemoPath(filePath))
 {
 }