Table of Contents

Class AdditionalParameter

Namespace
Loehnert.TypeAndResult
Assembly
Loehnert.TypeAndResult.dll

Base class for an additional parameter.

[MessagePackObject(false)]
public abstract class AdditionalParameter : EntityBase, INotifyPropertyChanged, ITrackable, IHasKey, IEquatable<AdditionalParameter>, ICanApplyID<AdditionalParameter>
Inheritance
AdditionalParameter
Implements
Derived
Inherited Members
Extension Methods

Properties

AdditionalParameterDefinitions

Gets the additional parameter definitions.

protected abstract IDictionary<string, IAdditionalParameterDefinition> AdditionalParameterDefinitions { get; }

Property Value

IDictionary<string, IAdditionalParameterDefinition>

Key

Gets or sets the key.

[Key(0)]
public string Key { get; set; }

Property Value

string

Text

Gets or sets the value as string, converted by the Converter.

[Key(1)]
[AlsoNotifyFor("Value")]
public string Text { get; set; }

Property Value

string

Value

Gets or sets the value.

[JsonIgnore]
[IgnoreMember]
[NotMapped]
[DoNotNotify]
public object Value { get; set; }

Property Value

object

Exceptions

ArgumentException

Thrown when the value is get or set without an IAdditionalParameterDefinition with the Key in AdditionalParameterDefinitions.

Methods

ApplyID(AdditionalParameter)

Copies the ID from source to ID.

public void ApplyID(AdditionalParameter source)

Parameters

source AdditionalParameter

Source object.

Equals(AdditionalParameter)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(AdditionalParameter other)

Parameters

other AdditionalParameter

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.