XmlSerializerDeserializeUnsafe(String) Method
Deserializes an object in unsafe mode from the specified file passed in the
fileName parameter. Use it only if the XML content is from a safe source.
See the security notes at the
Remarks section of the
XmlSerializer class for details.
Namespace: KGySoft.Serialization.XmlAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.5.0
public static Object? DeserializeUnsafe(
string fileName
)
Public Shared Function DeserializeUnsafe (
fileName As String
) As Object
public:
static Object^ DeserializeUnsafe(
String^ fileName
)
static member DeserializeUnsafe :
fileName : string -> Object
- fileName String
- The path to the file that contains the serialized content.
ObjectThe deserialized object.