Read an object from an Xml file.

Namespace:  Devolutions.Utils
Assembly:  Devolutions.Utils (in Devolutions.Utils.dll)

Syntax

Visual Basic
Public Shared Function LoadObjectFromFile ( _
	fileName As String, _
	type As Type, _
	createAnInstanceIfNotExists As Boolean _
) As Object
C#
public static Object LoadObjectFromFile(
	string fileName,
	Type type,
	bool createAnInstanceIfNotExists
)

Parameters

fileName
Type: System..::..String
type
Type: System..::..Type
createAnInstanceIfNotExists
Type: System..::..Boolean
Indicate if the method must create an empty instance if the file does not exists.

Return Value

See Also