C# Класс NCldr.ProtobufFileDataSource

ProtobufFileDataSource loads/saves the raw NCLDR data from an NCldr Protocol Buffers binary data file
This class requires the protobuf-net library from https://code.google.com/p/protobuf-net/. Set the ProtobufFileDataSource.NCldrDataPath property before calling Load
Наследование: INCldrFileDataSource
Показать файл Открыть проект

Открытые методы

Метод Описание
Exists ( ) : bool

Exists returns true if the NCldr data file exists

Load ( ) : INCldrData

Loads loads the raw data from the NCldr data file and returns an NCldrData object

Save ( INCldrData ncldrData ) : void

Save saves the NCldrData object to the NCldr data file

Приватные методы

Метод Описание
AddProtobufType ( Type allTypes, Type type ) : void

Adds a default protobuf data contract to the protobuf runtime model

ProtobufFileDataSource ( ) : System

Initializes static members of the ProtobufFileDataSource class

Описание методов

Exists() публичный Метод

Exists returns true if the NCldr data file exists
public Exists ( ) : bool
Результат bool

Load() публичный Метод

Loads loads the raw data from the NCldr data file and returns an NCldrData object
public Load ( ) : INCldrData
Результат INCldrData

Save() публичный Метод

Save saves the NCldrData object to the NCldr data file
public Save ( INCldrData ncldrData ) : void
ncldrData INCldrData The INCldrData object to save
Результат void