Photon Fusion
2.1.1
Editor attribute for adding notices to fields if the condition member evaluates as true. Condition member can be a property, field or method (with a return value).
More...
Inherits DoIfAttributeBase.
Public Member Functions | |
| ErrorIfAttribute (string conditionMember, bool compareToValue, string message, CompareOperator compare=CompareOperator.Equal) | |
| ErrorIfAttribute (string conditionMember, double compareToValue, string message, CompareOperator compare=CompareOperator.Equal) | |
| ErrorIfAttribute (string conditionMember, long compareToValue, string message, CompareOperator compare=CompareOperator.Equal) | |
| Public Member Functions inherited from PropertyAttribute | |
| PropertyAttribute (bool applyToCollection=false) | |
Public Attributes | |
| bool | AsBox |
| Should the error be shown as a box? | |
| string | Message |
| The default error text, when an error is shown. | |
| Public Attributes inherited from DoIfAttributeBase | |
| double | _doubleValue |
| The double value to compare against. | |
| bool | _isDouble |
| Is the value to compare against a double? | |
| long | _longValue |
| The long value to compare against. | |
| CompareOperator | Compare |
| The comparison operator to use. | |
| string | ConditionMember |
| Condition member to evaluate. | |
| bool | ErrorOnConditionMemberNotFound = true |
If true, an error will be thrown if the condition member is not found. | |
Additional Inherited Members | |
| Static Public Attributes inherited from DecoratingPropertyAttribute | |
| const int | DefaultOrder = -10000 |
| The default order of the attribute. | |
| Protected Member Functions inherited from DoIfAttributeBase | |
| DoIfAttributeBase (string conditionMember, bool compareToValue, CompareOperator compare) | |
| Initializes a new instance with a boolean value to compare against. | |
| DoIfAttributeBase (string conditionMember, double compareToValue, CompareOperator compare) | |
| Initializes a new instance with a double value to compare against. | |
| DoIfAttributeBase (string conditionMember, long compareToValue, CompareOperator compare) | |
| Initializes a new instance with a long value to compare against. | |
| Protected Member Functions inherited from DecoratingPropertyAttribute | |
| DecoratingPropertyAttribute (bool applyToCollection=false) | |
| Initializes a new instance with the default order. | |
| DecoratingPropertyAttribute (int order, bool applyToCollection=false) | |
| Initializes a new instance with the specified order. | |
| Properties inherited from PropertyAttribute | |
| new bool | applyToCollection [get] |
Editor attribute for adding notices to fields if the condition member evaluates as true. Condition member can be a property, field or method (with a return value).