Method TryGet
- Namespace
- IntentSharp.Catalog
- Assembly
- IntentSharp.Catalog.dll
TryGet(string, out IntentDefinition)
Finds the definition named name in Definitions. Returns false, with
definition null, when there is none. The name is not trimmed.
public bool TryGet(string name, out IntentDefinition definition)
Parameters
namestringdefinitionIntentDefinition
Returns
- bool
Exceptions
- ArgumentNullException
nameis null and Definitions rejects null keys, as the dictionaries of the built-in catalogs do.