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;
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);
Parameters
| Name | Type | Description |
|---|---|---|
source |
IOFile |
The source file to convert. |
targetFormat |
IOFileFormat |
The target format to convert to. |
Returns
The converted file.
Convert(IOFile, Type)
Converts a file to the specified target type.
public static IOFile Convert(IOFile source, Type targetType);
Parameters
| Name | Type | Description |
|---|---|---|
source |
IOFile |
The source file to convert. |
targetType |
Type |
The target IOFile type to convert to. |
Returns
The converted file.