C# Class SEModAPI.API.Definitions.ConfigFileSerializer

ファイルを表示 Open project: rexxar-tc/SEServerExtender

Public Methods

Method Description
ConfigFileSerializer ( FileInfo configFileInfo, bool useDefaultFileName = true ) : System
Deserialize ( ) : VRage.Game.MyObjectBuilder_Definitions

Method to deserialize a configuration file.

Serialize ( VRage.Game.MyObjectBuilder_Definitions definitions ) : void

Method to serialize a configuration file.

Private Methods

Method Description
EnsureFileInfoValidity ( FileSystemInfo configFileInfo, bool defaultName = true ) : void

This method is intended to verify of the given configFileInfo is valid

Method Details

ConfigFileSerializer() public method

public ConfigFileSerializer ( FileInfo configFileInfo, bool useDefaultFileName = true ) : System
configFileInfo System.IO.FileInfo
useDefaultFileName bool
return System

Deserialize() public method

Method to deserialize a configuration file.
Config file specified does not exist. The caller does not have the required permission.
public Deserialize ( ) : VRage.Game.MyObjectBuilder_Definitions
return VRage.Game.MyObjectBuilder_Definitions

Serialize() public method

Method to serialize a configuration file.
public Serialize ( VRage.Game.MyObjectBuilder_Definitions definitions ) : void
definitions VRage.Game.MyObjectBuilder_Definitions The definition to serialize.
return void