Share via


IResourceReader Interface

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Provides the base functionality to read data from resource files.

Namespace:  System.Resources
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
<ComVisibleAttribute(True)> _
Public Interface IResourceReader _
    Inherits IEnumerable, IDisposable
[ComVisibleAttribute(true)]
public interface IResourceReader : IEnumerable, 
    IDisposable

The IResourceReader type exposes the following members.

Methods

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Close Closes the resource reader after releasing any resources associated with it.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetEnumerator() Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetEnumerator() Returns an IDictionaryEnumerator of the resources for this reader.

Top

Extension Methods

  Name Description
Public Extension MethodSupported by Silverlight for Windows Phone AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Cast<TResult> Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodSupported by Silverlight for Windows PhoneSupported by Xbox 360 OfType<TResult> Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)

Top

Remarks

Resource readers are used to read a stream of resource files in a particular file format. Implement this interface when you need to control the way in which a resource file is read.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.