Class FormatExtensions
- Namespace
- Yarhl.FileFormat
- Assembly
- Yarhl.dll
Extensions that applies to every format.
public static class FormatExtensions
- Inheritance
-
FormatExtensions
- Inherited Members
Methods
ConvertWith<TSrc, TDst>(TSrc, IConverter<TSrc, TDst>, bool, bool)
Converts the format using a converter with the specified type.
public static TDst ConvertWith<TSrc, TDst>(this TSrc src, IConverter<TSrc, TDst> converter, bool disposeInput = false, bool disposeConverter = false) where TSrc : IFormat
Parameters
src
TSrcThe input object to convert.
converter
IConverter<TSrc, TDst>The converter to use.
disposeInput
boolValue indicating whether it disposes the source input after converting.
disposeConverter
boolValue indicating whether it disposes the converter after using it.
Returns
- TDst
The output from the converter.
Type Parameters
TSrc
Source format.
TDst
Destination format.