Skip to content

IOFileConversion.Convert Method ​

Overloads ​

NameDescription
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.

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

View source

Type Parameters ​

NameDescription
TTargetThe target file type.

Parameters ​

NameTypeDescription
sourceIOFileThe source file to convert.

Returns ​

TTarget

The converted file.

Convert(IOFile, IOFileFormat) ​

Converts a file to the specified target format.

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

View source

Parameters ​

NameTypeDescription
sourceIOFileThe source file to convert.
targetFormatIOFileFormatThe target format to convert to.

Returns ​

IOFile

The converted file.

Convert(IOFile, Type) ​

Converts a file to the specified target type.

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

View source

Parameters ​

NameTypeDescription
sourceIOFileThe source file to convert.
targetTypeTypeThe target IOFile type to convert to.

Returns ​

IOFile

The converted file.