RustDedicated/System.Configuration/ConfigXmlTextReader.cs
2025-05-25 05:29:54 +09:30

31 lines
609 B
C#

using System;
using System.Configuration.Internal;
using System.IO;
using System.Xml;
internal class ConfigXmlTextReader : XmlTextReader, IConfigErrorInfo
{
private readonly string fileName;
public string Filename => fileName;
public ConfigXmlTextReader(Stream s, string fileName)
: base(s)
{
if (fileName == null)
{
throw new ArgumentNullException("fileName");
}
this.fileName = fileName;
}
public ConfigXmlTextReader(TextReader input, string fileName)
: base(input)
{
if (fileName == null)
{
throw new ArgumentNullException("fileName");
}
this.fileName = fileName;
}
}