FromName

FormatFamilyBase.FromName<T> method

Retrieves an instance of the specified type T that has the specified name.

public static T FromName<T>(string name)
    where T : FormatFamilyBase
Parameter Description
T The type of format family.
name The name of the format family.

Return Value

An instance of the specified type T with the specified name.

Exceptions

exception condition
InvalidOperationException Thrown when no matching format family is found.

See Also