SpriteDatabaseReadFromXmlFileT Method |
Reads an object instance from an XML file.
Object type must have a parameterless constructor.
Namespace:
SpriteLibrary
Assembly:
SpriteLibrary (in SpriteLibrary.dll) Version: 1.0.0.6 (1.0.0.6)
Syntaxpublic static T ReadFromXmlFile<T>(
string filePath
)
where T : new()
Parameters
- filePath
- Type: SystemString
The file path to read the object instance from.
Type Parameters
- T
- The type of object to read from the file.
Return Value
Type:
TReturns a new instance of the object read from the XML file.
See Also