DeserializingResourceReader 類別

定義

提供類似於 ResourceReader 的 API,可讀取及還原序列化由 ResourceWriterPreserializedResourceWriter 所寫入的資源資料。Provides APIs similar to ResourceReader that can read and deserialize resource data written by either ResourceWriter or PreserializedResourceWriter.

public ref class DeserializingResourceReader sealed : IDisposable, System::Collections::IEnumerable, System::Resources::IResourceReader
public sealed class DeserializingResourceReader : IDisposable, System.Collections.IEnumerable, System.Resources.IResourceReader
type DeserializingResourceReader = class
    interface IEnumerable
    interface IDisposable
    interface IResourceReader
Public NotInheritable Class DeserializingResourceReader
Implements IDisposable, IEnumerable, IResourceReader
繼承
DeserializingResourceReader
實作

建構函式

DeserializingResourceReader(Stream)

初始化 DeserializingResourceReader 類別的新執行個體,此執行個體會讀取指定的資源資料流。Initializes a new instance of the DeserializingResourceReader class that reads the specified resources stream.

DeserializingResourceReader(String)

初始化 DeserializingResourceReader 類別的執行個體,此執行個體會讀取指定的具名資源檔。Initializes a new instance of the DeserializingResourceReader class that reads the specified named resource file.

方法

Close()

釋放與這個 DeserializingResourceReader 物件相關的所有作業系統資源。Releases all operating system resources associated with this DeserializingResourceReader object.

Dispose()

釋放 DeserializingResourceReader 使用的資源。Releases the resources used by the DeserializingResourceReader.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetEnumerator()

傳回這個 DeserializingResourceReader 物件的列舉程式。Returns an enumerator for this DeserializingResourceReader object.

GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

明確介面實作

IEnumerable.GetEnumerator()

傳回這個 DeserializingResourceReader 物件的列舉程式。Returns an enumerator for this DeserializingResourceReader object.

擴充方法

Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable)

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

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryableConverts an IEnumerable to an IQueryable.

適用於