op_Explicit

SpreadsheetFormats Explicit operator

Converts a string representing a file extension to a SpreadsheetFormats object.

public static explicit operator SpreadsheetFormats(string extension)
Parameter Type Description
extension String The file extension to convert. If the extension contains multiple periods, the part after the last period is used.

Return Value

A SpreadsheetFormats object corresponding to the specified file extension.

Exceptions

exception condition
SpreadsheetFormats Thrown when the specified file extension is null.

See Also