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
srcTSrcThe input object to convert.
converterIConverter<TSrc, TDst>The converter to use.
disposeInputboolValue indicating whether it disposes the source input after converting.
disposeConverterboolValue indicating whether it disposes the converter after using it.
Returns
- TDst
The output from the converter.
Type Parameters
TSrcSource format.
TDstDestination format.