FormatterRepository.TryGet Method
TryGet(Type, out IFormatter)
Attempts to get the IFormatter for the specified System.Type.
Declaration
public bool TryGet(Type objectType, out IFormatter formatter)
Parameters
Type | Name | Description |
---|---|---|
System.Type | objectType | Object type. |
IFormatter | formatter | The formatter for objects of the specified type, or null if the repository is unable to provide a formatter for the specified type. |
Returns
Type | Description |
---|---|
System.Boolean | true if the repository was able to provide a formatter for the specified type; otherwise, false. |