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
Key
Gets or sets the key.
[Key(0)]
public string Key { get; set; }
Property Value
Text
Gets or sets the value as string, converted by the Converter.
[Key(1)]
[AlsoNotifyFor("Value")]
public string Text { get; set; }
Property Value
Value
Gets or sets the value.
[JsonIgnore]
[IgnoreMember]
[NotMapped]
[DoNotNotify]
public object Value { get; set; }
Property Value
Exceptions
- ArgumentException
Thrown when the value is get or set without an IAdditionalParameterDefinition with the Key in AdditionalParameterDefinitions.
Methods
ApplyID(AdditionalParameter)
public void ApplyID(AdditionalParameter source)
Parameters
source
AdditionalParameterSource object.
Equals(AdditionalParameter)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(AdditionalParameter other)
Parameters
other
AdditionalParameterAn 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.