Click or drag to resize
GameFilesWriteToXmlFileT Method
Writes the given object instance to an XML file.

Only Public properties and variables will be written to the file. These can be any type though, even other classes.

If there are public properties/variables that you do not want written to the file, decorate them with the [XmlIgnore] attribute.

Object type must have a parameterless constructor.

Namespace:  GeonBit.Managers
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public void WriteToXmlFile<T>(
	string filePath,
	T objectToWrite
)

Parameters

filePath
Type: SystemString
The file path to write the object instance to.
objectToWrite
Type: T
The object instance to write to the file.

Type Parameters

T
The type of object being written to the file.
See Also