This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
ResourceWriter Members
Public:
Constructor
Methods
AddResource |
Overloaded. Adds a resource to the list of resources to be added to an output file or output stream. The resource is not written until Write is called. The resource added must be serializable. |
Close |
Closes the output stream. |
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetType (inherited from Object) |
Gets the Type of the Object. |
ToString (inherited from Object) |
Returns a String that represents the current Object. |
Write |
Writes all resources to the output stream in the system default format. If an exception occurs while writing the resources, the output stream is closed since the information written is most likely invalid. |
Protected:
Methods
Finalize (inherited from Object) |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
WriteValue |
Writes the value of an object to the specified stream. In general, serializes the object using the specified object formatter. However, for certain types, writes a more compact form of the object. For instance, writes a compact form of Int32 value. The method recognizes most of the primitive types and certain value classes. |
Fields
Output |
This field holds a reference to the output stream to which the resources are to be written. |
ResourceList |
This field holds a reference to the Hashtable hash table to which the resources are added using the AddResource method. The value of each resource is stored in the hash table keyed by the name of the resource. |
See Also
ResourceWriter Class | System.Resources Namespace