-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved up NullSymbol/Upd impromptu-interface
- Loading branch information
Showing
7 changed files
with
25 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ obj | |
*.suo | ||
|
||
*.user | ||
.idea/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ suggested by Nick Voznesensky <[email protected]> | |
Base class for DBFReader and DBFWriter. | ||
*/ | ||
|
||
using System; | ||
using System.Text; | ||
|
||
namespace DotNetDBF | ||
|
@@ -24,6 +25,7 @@ public abstract class DBFBase | |
{ | ||
protected Encoding _charEncoding = Encoding.GetEncoding("utf-8"); | ||
protected int _blockSize = 512; | ||
private string _nullSymbol; | ||
|
||
public Encoding CharEncoding | ||
{ | ||
|
@@ -38,5 +40,17 @@ public int BlockSize | |
|
||
get { return _blockSize; } | ||
} | ||
|
||
public string NullSymbol | ||
{ | ||
get { return _nullSymbol ?? DBFFieldType.Unknown; } | ||
set | ||
{ | ||
if (value != null && value.Length != 1) | ||
throw new ArgumentException(nameof(NullSymbol)); | ||
_nullSymbol = value; | ||
} | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters