summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/Resources/IResourceWriter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscorlib/src/System/Resources/IResourceWriter.cs')
-rw-r--r--src/mscorlib/src/System/Resources/IResourceWriter.cs44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/mscorlib/src/System/Resources/IResourceWriter.cs b/src/mscorlib/src/System/Resources/IResourceWriter.cs
new file mode 100644
index 0000000000..94e1ff536e
--- /dev/null
+++ b/src/mscorlib/src/System/Resources/IResourceWriter.cs
@@ -0,0 +1,44 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+/*============================================================
+**
+**
+**
+**
+**
+** Purpose: Default way to write strings to a COM+ resource
+** file.
+**
+**
+===========================================================*/
+namespace System.Resources {
+ using System;
+ using System.IO;
+ [System.Runtime.InteropServices.ComVisible(true)]
+ public interface IResourceWriter : IDisposable
+ {
+ // Interface does not need to be marked with the serializable attribute
+ // Adds a string resource to the list of resources to be written to a file.
+ // They aren't written until WriteFile() is called.
+ //
+ void AddResource(String name, String value);
+
+ // Adds a resource to the list of resources to be written to a file.
+ // They aren't written until WriteFile() is called.
+ //
+ void AddResource(String name, Object value);
+
+ // Adds a named byte array as a resource to the list of resources to
+ // be written to a file. They aren't written until WriteFile() is called.
+ //
+ void AddResource(String name, byte[] value);
+
+ // Closes the underlying resource file.
+ void Close();
+
+ // After calling AddResource, this writes all resources to the output
+ // stream. This does NOT close the output stream.
+ void Generate();
+ }
+}