Class PromptBase<T>
public abstract class PromptBase<T> : IPrompt, IEquatable<PromptBase<T>>
Type Parameters
T
- Inheritance
-
objectPromptBase<T>
- Implements
-
IEquatable<PromptBase<T>>
- Derived
- Extension Methods
Constructors
PromptBase()
protected PromptBase()
PromptBase(T, float?)
protected PromptBase(T value, float? weight = null)
Parameters
valueTweightfloat?
Fields
m_Value
protected T m_Value
Field Value
- T
Properties
PromptType
[LocalProperty("type")]
public abstract PromptType PromptType { get; }
Property Value
Value
public virtual T Value { get; set; }
Property Value
- T
Weight
public float? Weight { get; set; }
Property Value
- float?
Methods
Equals(PromptBase<T>)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(PromptBase<T> other)
Parameters
otherPromptBase<T>An object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetInputText()
public abstract string GetInputText()
Returns
- string
IsValid()
public abstract bool IsValid()
Returns
- bool
Operators
operator ==(PromptBase<T>, PromptBase<T>)
public static bool operator ==(PromptBase<T> left, PromptBase<T> right)
Parameters
leftPromptBase<T>rightPromptBase<T>
Returns
- bool
operator !=(PromptBase<T>, PromptBase<T>)
public static bool operator !=(PromptBase<T> left, PromptBase<T> right)
Parameters
leftPromptBase<T>rightPromptBase<T>
Returns
- bool