Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IResourceReader Interface

Definition

Namespace:
System.Resources
Assemblies:
netstandard.dll, System.Runtime.dll
Assembly:
System.Resources.ResourceManager.dll
Assembly:
mscorlib.dll
Assembly:
netstandard.dll
Source:
IResourceReader.cs
Source:
IResourceReader.cs
Source:
SuppressGCTransitionAttribute.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides the base functionality for reading data from resource files.

public interface class IResourceReader : IDisposable, System::Collections::IEnumerable
public interface IResourceReader : IDisposable, System.Collections.IEnumerable
[System.Runtime.InteropServices.ComVisible(true)]
public interface IResourceReader : IDisposable, System.Collections.IEnumerable
type IResourceReader = interface
 interface IEnumerable
 interface IDisposable
[<System.Runtime.InteropServices.ComVisible(true)>]
type IResourceReader = interface
 interface IEnumerable
 interface IDisposable
Public Interface IResourceReader
Implements IDisposable, IEnumerable
Derived
Attributes
Implements

Remarks

Resource readers are used to read a stream of data from resource files in a particular format. Implement this interface when you want to control the way in which a resource file is read (for example, if the resource file was written by using a customized ResourceWriter) or if you are using a non-standard format or file type for storing resources. Otherwise, use the default ResourceReader class, which reads resource information from binary .resources files, or the ResXResourceReader class, which reads resource information from XML resource (.resx) files.

Methods

Name Description
Close()

Closes the resource reader after releasing any resources associated with it.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(Inherited from IDisposable)
GetEnumerator()

Returns a dictionary enumerator of the resources for this reader.

Extension Methods

Name Description
AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

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.

Applies to

See also


Feedback

Was this page helpful?