Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Resources.​ResourceSet
Assembly: System.Runtime
Inheritance: object → ResourceSet
Stores all the resources localized for one particular culture, ignoring all other cultures, including any fallback rules.
Methods
public
void
Close​()
Closes and releases any resources used by this <see cref="T:System.Resources.ResourceSet" /> .
public
void
Dispose​()
Disposes of the resources (other than memory) used by the current instance of <see cref="T:System.Resources.ResourceSet" /> .
protected
void
Dispose​(bool disposing)
disposing
Indicates whether the objects contained in the current instance should be explicitly closed.
Releases resources (other than memory) associated with the current instance, closing internal managed objects if requested.
public
Type
GetDefaultReader​() Returns The <see cref="T:System.Type" /> for the preferred resource reader for this kind of <see cref="T:System.Resources.ResourceSet" /> .
Returns the preferred resource reader class for this kind of <see cref="T:System.Resources.ResourceSet" /> .
public
Type
GetDefaultWriter​() Returns The <see cref="T:System.Type" /> for the preferred resource writer for this kind of <see cref="T:System.Resources.ResourceSet" /> .
Returns the preferred resource writer class for this kind of <see cref="T:System.Resources.ResourceSet" /> .
GetEnumerator​()
Returns An <see cref="T:System.Collections.IDictionaryEnumerator" /> for this <see cref="T:System.Resources.ResourceSet" /> .
Returns an <see cref="T:System.Collections.IDictionaryEnumerator" /> that can iterate through the <see cref="T:System.Resources.ResourceSet" /> .
public
object
GetObject​(string name)
name
Case-sensitive name of the resource to search for.
Returns The requested resource.
Searches for a resource object with the specified name.
public
object
GetObject​(string name,
bool ignoreCase)
name
Name of the resource to search for.
ignoreCase
Indicates whether the case of the specified name should be ignored.
Returns The requested resource.
Searches for a resource object with the specified name in a case-insensitive manner, if requested.
public
string
GetString​(string name)
name
Name of the resource to search for.
Returns The value of a resource, if the value is a <see cref="T:System.String" /> .
Searches for a <see cref="T:System.String" /> resource with the specified name.
public
string
GetString​(string name,
bool ignoreCase)
name
Name of the resource to search for.
ignoreCase
Indicates whether the case of the case of the specified name should be ignored.
Returns The value of a resource, if the value is a <see cref="T:System.String" /> .
Searches for a <see cref="T:System.String" /> resource with the specified name in a case-insensitive manner, if requested.
protected
void
ReadResources​()
Reads all the resources and stores them in a <see cref="T:System.Collections.Hashtable" /> indicated in the <see cref="F:System.Resources.ResourceSet.Table" /> property.
public
bool
Equals​(object obj)
Inherited from object
obj
The object to compare with the current object.
Returns <see langword="true" /> if the specified object is equal to the current object; otherwise, <see langword="false" /> .
Determines whether the specified object is equal to the current object.
protected
void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public
int
GetHashCode​()
Inherited from object
Returns A hash code for the current object.
Serves as the default hash function.
public
Type
GetType​()
Inherited from object
Returns The exact runtime type of the current instance.
Gets the <see cref="T:System.Type" /> of the current instance.
protected
object
MemberwiseClone​()
Inherited from object
Returns A shallow copy of the current <see cref="T:System.Object" /> .
Creates a shallow copy of the current <see cref="T:System.Object" /> .
public
string
ToString​()
Inherited from object
Returns A string that represents the current object.
Returns a string that represents the current object.