[]
Defines the capability to load objects from both file and stream sources.
public interface ILoadableFromFileAndStream
This interface is designed for objects that can be initialized or populated from external sources such as files or streams. It supports loading from a simple file path, a stream, or a stream with an associated base URI for resolving relative paths or URIs within the loaded data.
Name | Description |
---|---|
LoadFromFile(FileInfo) | Loads the object from a specified file. |
LoadFromStream(Stream) | Loads the object from a specified stream. |
LoadFromStream(Stream, Uri) | Loads the object from a specified stream, using a base URI for resolving relative URIs. |