C# Class FullInspector.InspectorDisabledIfAttribute

Inheritance: System.Attribute
Exibir arquivo Open project: jacobdufault/fullinspector

Public Properties

Property Type Description
ConditionalMemberNames string[]
Operator fiLogicalOperator

Public Methods

Method Description
InspectorDisabledIfAttribute ( fiLogicalOperator op ) : System
InspectorDisabledIfAttribute ( string conditionalMemberName ) : System

This allows a member to be conditionally hidden in the inspector depending upon the state of other variables in object. This does *not* change serialization behavior, only display behavior.

Method Details

InspectorDisabledIfAttribute() public method

public InspectorDisabledIfAttribute ( fiLogicalOperator op ) : System
op fiLogicalOperator
return System

InspectorDisabledIfAttribute() public method

This allows a member to be conditionally hidden in the inspector depending upon the state of other variables in object. This does *not* change serialization behavior, only display behavior.
public InspectorDisabledIfAttribute ( string conditionalMemberName ) : System
conditionalMemberName string /// The name of the member to use as a condition. The conditional needs /// to either be a boolean field, a boolean property with a getter, or a /// no-argument method that returns a boolean. ///
return System

Property Details

ConditionalMemberNames public_oe property

A sequence of named boolean values to fetch from the object instance. Each condition is combined using |Operator|.
public string[] ConditionalMemberNames
return string[]

Operator public_oe property

How |ConditionalMemberNames| should be combined into one value.
public fiLogicalOperator Operator
return fiLogicalOperator