Documentation
Table of Contents

Method TryGet

Namespace
IntentSharp.Catalog
Assembly
IntentSharp.Catalog.dll

TryGet(string, out Func<object?, IEnumerable<string>>)

Finds the validator registered as name. Returns false, with validator null, when there is none; the runtime then refuses to run the intent and names the missing validator.

bool TryGet(string name, out Func<object?, IEnumerable<string>> validator)

Parameters

name string
validator Func<object, IEnumerable<string>>

Returns

bool