IResourceReader IResourceReader IResourceReader IResourceReader Interface


提供從資源檔讀取資料的基本功能。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
type IResourceReader = interface
    interface IEnumerable
    interface IDisposable
Public Interface IResourceReader
Implements IDisposable, IEnumerable


資源讀取器用來從以特定格式的資源檔讀取資料的資料流。Resource readers are used to read a stream of data from resource files in a particular format. 當您想要控制在其中資源檔案唯讀的方式實作這個介面 (例如,如果資源檔使用自訂所撰寫ResourceWriter) 或如果您使用非標準格式或檔案類型來儲存資源。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. 否則,請使用預設值ResourceReader類別,以讀取二進位.resources 檔案中的資源資訊,或ResXResourceReader類別,以讀取來自 XML 資源 (.resx) 檔案的資源資訊。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.


Close() Close() Close() Close()

在釋放與資源讀取器相關的任何資源之後,關閉資源讀取器。Closes the resource reader after releasing any resources associated with it.

Dispose() Dispose() Dispose() Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(Inherited from IDisposable)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

傳回這個讀取器資源的字典列舉程式。Returns a dictionary enumerator of the resources for this reader.

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

啟用查詢的平行化作業。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

將轉換IEnumerableIQueryableConverts an IEnumerable to an IQueryable.