mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
14 lines
283 B
C#
14 lines
283 B
C#
using System.Xml.Serialization;
|
|
using System.IO;
|
|
using System;
|
|
|
|
class GoodXmlSerializer
|
|
{
|
|
public static object Deserialize(Stream s)
|
|
{
|
|
// Good: type is hardcoded
|
|
var ds = new XmlSerializer(typeof(GoodXmlSerializer));
|
|
return ds.Deserialize(s);
|
|
}
|
|
}
|