Click or drag to resize

TypeConvertedValueExpressionAttribute Class

Defines a C# expression attribute that when evaluated will type convert its value for a property.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    GSF.ComponentModelValueExpressionAttributeBase
      GSF.ComponentModelTypeConvertedValueExpressionAttribute

Namespace: GSF.ComponentModel
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
[AttributeUsageAttribute(AttributeTargets.Property)]
public sealed class TypeConvertedValueExpressionAttribute : ValueExpressionAttributeBase
View Source

The TypeConvertedValueExpressionAttribute type exposes the following members.

Constructors
 NameDescription
Public methodTypeConvertedValueExpressionAttribute Creates a new TypeConvertedValueExpressionAttribute
Top
Properties
 NameDescription
Public propertyCached Gets or sets value that determines if value should be cached after first evaluation. Defaults to false.
(Inherited from ValueExpressionAttributeBase)
Public propertyEvaluationOrder Gets or sets the numeric evaluation order for this expression. Defaults to zero.
(Inherited from ValueExpressionAttributeBase)
Public propertyExpression Gets C# expression that will evaluate to the desired value.
(Inherited from ValueExpressionAttributeBase)
Public propertyReturnType Gets the return Type for this Expression.
Public propertyTypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute)
Public propertyTypeRegistry Gets or sets any TypeRegistry to use if the attribute Expression needs to be pre-parsed.
(Inherited from ValueExpressionAttributeBase)
Top
Methods
 NameDescription
Public methodEqualsReturns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute)
Public methodGetExpressionUpdateValue Gets the modeled property based value used to update the Expression.
(Overrides ValueExpressionAttributeBaseGetExpressionUpdateValue(PropertyInfo))
Public methodGetHashCodeReturns the hash code for this instance.
(Inherited from Attribute)
Public methodGetPropertyUpdateValue Gets the Expression based value used to update a modeled property.
(Overrides ValueExpressionAttributeBaseGetPropertyUpdateValue(PropertyInfo))
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsDefaultAttributeWhen overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute)
Public methodMatchWhen overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
Remarks
This attribute is typically used when synchronizing modeled values to an external sources, e.g., user interface elements.
See Also