Skip to content

ResourceFormat<TFile> Class ​

Definition ​

Base class for resource formats with a strongly typed file type.

c#
public abstract class ResourceFormat<TFile> : ResourceFormat
   where TFile : ResourceFile

View source

Type Parameters ​

NameDescription
TFileThe concrete file type.

Constructors ​

NameDescription
ResourceFormat(String, String)Base class for resource formats with a strongly typed file type.

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.
WriteAsync(IOFile, IBinaryWriter)Writes a file to a IBinaryWriter asynchronously.
WriteAsync(TFile, IBinaryWriter)Writes a strongly typed resource file.