op_Explicit

FixedLayoutFormats Explicit operator

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

public static explicit operator FixedLayoutFormats(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 FixedLayoutFormats object corresponding to the specified file extension.

Exceptions

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

See Also