[Serializable] |
See the the conceptual topic at MSDN: designingglobalapplications for details on the default resource file format.
| ctor #2 | Overloaded:.ctor(IResourceReader reader) Creates a new instance of the ResourceSet class using the specified resource reader. |
| ctor #3 | Overloaded:.ctor(Stream stream) Creates a new instance of the ResourceSet class using the system default ResourceReader that reads resources from the given stream. |
| ctor #4 | Overloaded:.ctor(string fileName) Creates a new instance of the ResourceSet class using the system default ResourceReader that opens and reads resources from the given file. |
| Close | Closes and releases any resources used by this ResourceSet. |
| Dispose | Overloaded:Dispose() Disposes of the resources (other than memory) used by the current instance of ResourceSet. |
| Equals (inherited from System.Object) |
See base class member description: System.Object.Equals Derived from System.Object, the primary base class for all objects. |
| GetDefaultReader | Returns the preferred resource reader class for this kind of ResourceSet. |
| GetDefaultWriter | Returns the preferred resource writer class for this kind of ResourceSet. |
| GetHashCode (inherited from System.Object) |
See base class member description: System.Object.GetHashCode Derived from System.Object, the primary base class for all objects. |
| GetObject | Overloaded:GetObject(string name) Searches for a resource object with the specified name. |
| GetObject | Overloaded:GetObject(string name, bool ignoreCase) Searches for a resource object with the specified name in a case-insensitive manner, if requested. |
| GetString | Overloaded:GetString(string name) Searches for a String resource with the specified name. |
| GetString | Overloaded:GetString(string name, bool ignoreCase) Searches for a String resource with the specified name in a case-insensitive manner, if requested. |
| GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
| ToString (inherited from System.Object) |
See base class member description: System.Object.ToString Derived from System.Object, the primary base class for all objects. |
| ctor #1 | Overloaded:.ctor()Default constructor. This constructor is called by derived class constructors to initialize state in this type.Initializes a new instance of the ResourceSet class with default properties. |
| Reader | Indicates the IResourceReader used to read the resources. |
| Table | The Hashtable in which the resources are stored. |
| Dispose | Overloaded:Dispose(bool disposing) Releases resources (other than memory) associated with the current instance, closing internal managed objects if requested. |
| Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
| MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
| ReadResources | Reads all the resources and stores them in a Hashtable indicated in the ResourceSet.Table property. |
Hierarchy:
protected ResourceSet(); |
public ResourceSet( |
reader
| Exception Type | Condition |
|---|---|
| ArgumentNullException | The reader parameter is null. |
public ResourceSet( |
stream
| Exception Type | Condition |
|---|---|
| ArgumentException | The stream is not readable. |
| ArgumentNullException | The stream parameter is null. |
public ResourceSet( |
fileName
| Exception Type | Condition |
|---|---|
| ArgumentNullException | The fileName parameter is null. |
protected IResourceReader Reader;
|
protected Hashtable Table;
|
public virtual void Close(); |
ResourceSet.Close can be safely called multiple times.
public void Dispose(); |
protected virtual void Dispose( |
disposing
~ResourceSet(); |
public virtual Type GetDefaultReader(); |
public virtual Type GetDefaultWriter(); |
public virtual int GetHashCode(); |
name
| Exception Type | Condition |
|---|---|
| ArgumentNullException | The name parameter is null. |
| InvalidOperationException | This ResourceSet has been closed. |
name
ignoreCase
| Exception Type | Condition |
|---|---|
| ArgumentNullException | The name parameter is null. |
| InvalidOperationException | This ResourceSet has been closed. |
name
| Exception Type | Condition |
|---|---|
| ArgumentNullException | The name parameter is null. |
| InvalidOperationException | The resource with the specified name is not a String or the current ResourceSet has been closed. |
name
ignoreCase
| Exception Type | Condition |
|---|---|
| ArgumentNullException | The name parameter is null. |
| InvalidOperationException | The resource with the specified name is not a String or the current ResourceSet has been closed. |
public Type GetType(); |
protected object MemberwiseClone(); |
protected virtual void ReadResources(); |
public virtual string ToString(); |