[]
Determines whether the specified text is a custom name handled by this resolver.
bool IsCustomName(string text)
Function IsCustomName(text As String) As Boolean
| Type | Name | Description |
|---|---|---|
| string | text | The formula text or name to check. |
| Type | Description |
|---|---|
| bool |
|
class CustomFormulaResolver : IFormulaResolver
{
public bool IsCustomName(string text)
{
return text == "TaxRate";
}
public object Evaluate(string text)
{
return text == "TaxRate" ? 0.08 : null;
}
}
IFormulaResolver resolver = new CustomFormulaResolver();
bool isCustomName = resolver.IsCustomName("TaxRate");