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

Implemented Interfaces

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)
Releases resources (other than memory) associated with the current instance, closing internal managed objects if requested.
disposing Indicates whether the objects contained in the current instance should be explicitly closed.
public Type
GetDefaultReader​()
Returns the preferred resource reader class for this kind of <see cref="T:System.Resources.ResourceSet" /> .
Returns The <see cref="T:System.Type" /> for the preferred resource reader for this kind of <see cref="T:System.Resources.ResourceSet" /> .
public Type
GetDefaultWriter​()
Returns the preferred resource writer class for this kind of <see cref="T:System.Resources.ResourceSet" /> .
Returns The <see cref="T:System.Type" /> for the preferred resource writer for this kind of <see cref="T:System.Resources.ResourceSet" /> .
GetEnumerator​()
Returns an <see cref="T:System.Collections.IDictionaryEnumerator" /> that can iterate through the <see cref="T:System.Resources.ResourceSet" /> .
Returns An <see cref="T:System.Collections.IDictionaryEnumerator" /> for this <see cref="T:System.Resources.ResourceSet" /> .
public object
GetObject​(string name)
Searches for a resource object with the specified name.
Returns The requested resource.
name Case-sensitive name of the resource to search for.
public object
GetObject​(string name, bool ignoreCase)
Searches for a resource object with the specified name in a case-insensitive manner, if requested.
Returns The requested resource.
name Name of the resource to search for.
ignoreCase Indicates whether the case of the specified name should be ignored.
public string
GetString​(string name)
Searches for a <see cref="T:System.String" /> resource with the specified name.
Returns The value of a resource, if the value is a <see cref="T:System.String" /> .
name Name of the resource to search for.
public string
GetString​(string name, bool ignoreCase)
Searches for a <see cref="T:System.String" /> resource with the specified name in a case-insensitive manner, if requested.
Returns The value of a resource, if the value is a <see cref="T:System.String" /> .
name Name of the resource to search for.
ignoreCase Indicates whether the case of the case of the specified name should be ignored.
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
Determines whether the specified object is equal to the current object.
Returns <see langword="true" /> if the specified object is equal to the current object; otherwise, <see langword="false" /> .
obj The object to compare with 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
Serves as the default hash function.
Returns A hash code for the current object.
public Type
GetType​()
Inherited from object
Gets the <see cref="T:System.Type" /> of the current instance.
Returns The exact runtime type of the current instance.
protected object
MemberwiseClone​()
Inherited from object
Creates a shallow copy of the current <see cref="T:System.Object" /> .
Returns 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.