[ShowIf]

Attribute shows the field only when the expression evaluates to true.

Parameters

Parameter Name
Description

expression

Boolean expression. Field is shown when true.

Examples

[ShowIf("isValid")]
public int value;

[ShowIf("@isValid")]
public int value;

[ShowIf("someObject != null")]
public int value;

Last updated