C# Class NetBase.Storage.Column

The column class is roughly based on a DBF style struct. Names are limited to ten characters, there are a couple of datatypes; but they're all written as strings, that kind of thing. Note that NetBase currently only supports writing strings; although it can read different datatypes See the table class for more notes about the on-disk format.
Afficher le fichier Open project: buttonpusher/NetBase Class Usage Examples

Méthodes publiques

Méthode Description
BinRead ( BinaryReader br ) : void
BinWrite ( BinaryWriter bw ) : void
ReadFromRow ( BinaryReader br ) : object

The column knows about the datatype, so it takes care of reading and writing the row's data

WriteToRow ( BinaryWriter bw, string data ) : void

The column knows about the datatype, so it takes care of reading and writing the row's data

Method Details

BinRead() public méthode

public BinRead ( BinaryReader br ) : void
br System.IO.BinaryReader
Résultat void

BinWrite() public méthode

public BinWrite ( BinaryWriter bw ) : void
bw System.IO.BinaryWriter
Résultat void

ReadFromRow() public méthode

The column knows about the datatype, so it takes care of reading and writing the row's data
public ReadFromRow ( BinaryReader br ) : object
br System.IO.BinaryReader
Résultat object

WriteToRow() public méthode

The column knows about the datatype, so it takes care of reading and writing the row's data
public WriteToRow ( BinaryWriter bw, string data ) : void
bw System.IO.BinaryWriter
data string
Résultat void