Skip to main content

NullConditionAttribute

A class in Alta.Attributes, the global namespace.

Inspector attribute that shows, hides or locks a field depending on whether another object field is null.

Constructors​

MemberWhat it is
NullConditionAttribute(string objectValue, ReadOnlyMode notNullMode = 2, ReadOnlyMode nullMode = 0)Creates a NullConditionAttribute from objectValue, notNullMode and nullMode.

Properties​

MemberWhat it is
ReadOnlyMode NotNullMode { get; private set; }How the field shows when the other field is set (editable by default).
ReadOnlyMode NullMode { get; private set; }How the field shows when the other field is null (hidden by default).
string ObjectValue { get; private set; }Name of the object field to check.