Edit

Share via


ResourceReader Class

Definition

Enumerates the resources in a binary resources (.resources) file by reading sequential resource name/value pairs.

C#
public sealed class ResourceReader : System.Resources.IResourceReader
C#
public sealed class ResourceReader : IDisposable
C#
public sealed class ResourceReader : IDisposable, System.Collections.IEnumerable, System.Resources.IResourceReader
C#
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class ResourceReader : System.Resources.IResourceReader
Inheritance
ResourceReader
Attributes
Implements

Remarks

For more information about this API, see Supplemental API remarks for ResourceReader.

Constructors

ResourceReader(Stream)

Initializes a new instance of the ResourceReader class for the specified stream.

ResourceReader(String)

Initializes a new instance of the ResourceReader class for the specified named resource file.

Methods

Close()

Releases all operating system resources associated with this ResourceReader object.

Dispose()

Releases all resources used by the current instance of the ResourceReader class.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator()

Returns an enumerator for this ResourceReader object.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetResourceData(String, String, Byte[])

Retrieves the type name and data of a named resource from an open resource file or stream.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IDisposable.Dispose()

Releases the resources used by the ResourceReader.

IEnumerable.GetEnumerator()

Returns an enumerator for this ResourceReader object.

Extension Methods

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1