Class ExternalizableAttribute
- Namespace
- Bonsai
- Assembly
- Bonsai.Core.dll
Specifies whether a property is allowed to be explicitly externalized on a workflow editor.
[AttributeUsage(AttributeTargets.Property)]
public sealed class ExternalizableAttribute : Attribute, _Attribute
- Inheritance
-
ExternalizableAttribute
- Implements
- Inherited Members
Constructors
ExternalizableAttribute(bool)
Initializes a new instance of the ExternalizableAttribute class.
public ExternalizableAttribute(bool externalizable)
Parameters
externalizable
booltrue if the property can be explicitly externalized on a workflow editor; otherwise, false. The default is true.
Fields
Default
Specifies the default value for the ExternalizableAttribute which is set to allow a property to be explicitly externalized on a workflow editor.
public static readonly ExternalizableAttribute Default
Field Value
No
Specifies that a property cannot be explicitly externalized on a workflow editor.
public static readonly ExternalizableAttribute No
Field Value
Yes
Specifies that a property can be explicitly externalized on a workflow editor.
public static readonly ExternalizableAttribute Yes
Field Value
Properties
Externalizable
Gets a value indicating whether a property is externalizable.
public bool Externalizable { get; }
Property Value
Methods
Equals(object)
Returns a value indicating whether this instance is equal to a specified object.
public override bool Equals(object obj)
Parameters
obj
objectAn object to compare with this instance.
Returns
- bool
true if
obj
is an instance of ExternalizableAttribute and the externalizable state equals the state of this instance; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer hash code.
IsDefaultAttribute()
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
public override bool IsDefaultAttribute()