mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
because it makes no sense to have these classes here instead of System or system.Xml). svn path=/trunk/mcs/; revision=6503
65 lines
1.3 KiB
C#
65 lines
1.3 KiB
C#
//
|
|
// System.Resources.ResXResourceWriter.cs
|
|
//
|
|
// Author:
|
|
// Duncan Mak <[email protected]>
|
|
//
|
|
// 2001 (C) Ximian, Inc. http://www.ximian.com
|
|
//
|
|
|
|
using System.IO;
|
|
|
|
namespace System.Resources
|
|
{
|
|
public sealed class ResXResourceWriter : IResourceWriter
|
|
{
|
|
[MonoTODO]
|
|
public ResXResourceWriter (Stream stream)
|
|
{
|
|
if (stream == null)
|
|
throw new ArgumentNullException ("stream is null");
|
|
if (stream.CanWrite == false)
|
|
throw new ArgumentException ("stream is not writable.");
|
|
}
|
|
|
|
[MonoTODO]
|
|
public ResXResourceWriter (String fileName)
|
|
{
|
|
if (fileName == null)
|
|
throw new ArgumentNullException ("fileName is null.");
|
|
}
|
|
|
|
[MonoTODO]
|
|
public void AddResource (string name, byte[] value)
|
|
{
|
|
if (name == null || value == null)
|
|
throw new ArgumentNullException ("Parameter is a null reference.");
|
|
}
|
|
|
|
[MonoTODO]
|
|
public void AddResource (string name, object value)
|
|
{
|
|
if (name == null || value == null)
|
|
throw new ArgumentNullException ("Parameter is a null reference.");
|
|
}
|
|
|
|
[MonoTODO]
|
|
public void AddResource (string name, string value)
|
|
{
|
|
if (name == null || value == null)
|
|
throw new ArgumentNullException ("Parameter is a null reference.");
|
|
}
|
|
|
|
[MonoTODO]
|
|
public void Close () {}
|
|
|
|
public void Dispose ()
|
|
{
|
|
Close();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public void Generate () {}
|
|
}
|
|
}
|