แก้ไข

แชร์ผ่าน


IResourceReader Interface

Definition

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

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

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

See also