DeserializingResourceReader DeserializingResourceReader DeserializingResourceReader DeserializingResourceReader Class

定义

提供类似于 ResourceReader 的、可以读取和反序列化 ResourceWriterPreserializedResourceWriter 写入的资源数据的 API。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
继承
DeserializingResourceReaderDeserializingResourceReaderDeserializingResourceReaderDeserializingResourceReader
实现

构造函数

DeserializingResourceReader(Stream) DeserializingResourceReader(Stream) DeserializingResourceReader(Stream) DeserializingResourceReader(Stream)

初始化读取指定资源流的 DeserializingResourceReader 类的新实例。Initializes a new instance of the DeserializingResourceReader class that reads the specified resources stream.

DeserializingResourceReader(String) DeserializingResourceReader(String) DeserializingResourceReader(String) DeserializingResourceReader(String)

初始化读取指定命名资源文件的 DeserializingResourceReader 类的新实例。Initializes a new instance of the DeserializingResourceReader class that reads the specified named resource file.

方法

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

释放与此 DeserializingResourceReader 对象相关联的所有操作系统资源。Releases all operating system resources associated with this DeserializingResourceReader object.

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

释放由 DeserializingResourceReader 占用的资源。Releases the resources used by the DeserializingResourceReader.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

返回此 DeserializingResourceReader 对象的枚举器。Returns an enumerator for this DeserializingResourceReader object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

显式界面实现

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

返回此 DeserializingResourceReader 对象的枚举器。Returns an enumerator for this DeserializingResourceReader object.

扩展方法

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)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于