Table of Contents

Class AttributeBase

Namespace
The.Attributes
Assembly
Instagile.dll

Nongeneric base class for attributes

public abstract class AttributeBase : IProperty, IOwned, IHasChanges, IComparable
Inheritance
AttributeBase
Implements
Derived
Inherited Members

Properties

DynamicTypeDefault

public abstract object? DynamicTypeDefault { get; }

Property Value

object

DynamicValue

public abstract object? DynamicValue { get; set; }

Property Value

object

Metadata

public AttributeInfo Metadata { get; }

Property Value

AttributeInfo

Parent

Owner (if any).

public EntityKernel Parent { get; }

Property Value

EntityKernel

ValueType

public abstract Type ValueType { get; }

Property Value

Type

Methods

CalculateAsync()

public abstract Task CalculateAsync()

Returns

Task

CompareTo(object?)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

public abstract int CompareTo(object? compareProp)

Parameters

compareProp object

Returns

int

A value that indicates the relative order of the objects being compared. The return value has these meanings:

Value Meaning
Less than zero This instance precedes obj in the sort order.
Zero This instance occurs in the same position in the sort order as obj.
Greater than zero This instance follows obj in the sort order.

Exceptions

ArgumentException

obj is not the same type as this instance.

CopyFrom(EntityKernel)

public void CopyFrom(EntityKernel other)

Parameters

other EntityKernel

CopyTo(AttributeBase)

public void CopyTo(AttributeBase other)

Parameters

other AttributeBase

GetOriginalText()

public abstract string GetOriginalText()

Returns

string

GetText()

public abstract string GetText()

Returns

string

HasChanges()

true if the current value differs from its original

public abstract bool HasChanges()

Returns

bool

InternalCopy(AttributeBase, AttributeBase)

protected abstract void InternalCopy(AttributeBase from, AttributeBase to)

Parameters

from AttributeBase
to AttributeBase

MarkUnchanged()

update original data so that it's no longer considered changed

public abstract void MarkUnchanged()

NeedsSave()

true if the value has non-derived changes, ones made deliberately by a user or business logic

public bool NeedsSave()

Returns

bool

RaiseValueChanged()

protected void RaiseValueChanged()

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

TrySetText(string)

public abstract bool TrySetText(string text)

Parameters

text string

Returns

bool

Events

ValueChanged

public event EventHandler? ValueChanged

Event Type

EventHandler