Skip to content

IOFileConversion.Convert Method

Overloads

Name Description
Convert<TTarget>(IOFile) Converts a file to the specified target file type.
Convert(IOFile, IOFileFormat) Converts a file to the specified target format.
Convert(IOFile, Type) Converts a file to the specified target type.

Convert<TTarget>(IOFile)

Converts a file to the specified target file type.

public static TTarget Convert<TTarget>(IOFile source)
   where TTarget : IOFile;

View source

Type Parameters

Name Description
TTarget The target file type.

Parameters

Name Type Description
source IOFile The source file to convert.

Returns

TTarget

The converted file.

Convert(IOFile, IOFileFormat)

Converts a file to the specified target format.

public static IOFile Convert(IOFile source, IOFileFormat targetFormat);

View source

Parameters

Name Type Description
source IOFile The source file to convert.
targetFormat IOFileFormat The target format to convert to.

Returns

IOFile

The converted file.

Convert(IOFile, Type)

Converts a file to the specified target type.

public static IOFile Convert(IOFile source, Type targetType);

View source

Parameters

Name Type Description
source IOFile The source file to convert.
targetType Type The target IOFile type to convert to.

Returns

IOFile

The converted file.