Skip to content

ResourceFormat Class ​

Definition ​

Base class for resource file formats.

c#
public abstract class ResourceFormat : IOFileFormat

View source

Constructors ​

NameDescription
ResourceFormat(String, String, Type)Initializes a resource format.

Methods ​

NameDescription
Read(Byte[])Reads a resource file from a byte array.
Read(Stream)Reads a resource file from a stream.
ReadAsync(Stream, CancellationToken)Reads a resource file asynchronously.
ValidateFileType(Type, Type)Validates that a format's file type derives from the expected resource file type.