GH_ValueProxy<T>

References
public abstract class GH_ValueProxy<T> : IGH_ValueProxy
Represents the abstract base implementation of the IGH_ValueProxy interface.
TThe type of this implementation

Constructors

GH_ValueProxy

#
Default constructor for the base class. All derived classes must call this constructor.
protected GH_ValueProxy(
T
nValue,
The value to store in this proxy
nProxyName,
The human-friendly name of this value type
bIsStringProxy
If True, then this proxy becomes Parsable.
)

Fields

m_IsStringProxy

#
protected bool m_IsStringProxy

m_Name

#
protected string m_Name

m_UserString

#
protected string m_UserString

m_Valid

#
protected bool m_Valid

m_Value

#
protected T m_Value

Properties

IsParsable

#
[Browsable(false)] public bool IsParsable { get; }
IsParsable

IsValid

#
public virtual bool IsValid { get; }
IsValid

ProxyName

#
[Browsable(false)] public string ProxyName { get; }
ProxyName

ProxyType

#
[Browsable(false)] public Type ProxyType { get; }
ProxyType

ProxyValue

#
[Browsable(false)] public object ProxyValue { get; }
ProxyValue

UserString

#
Wraps the protected m_UserString field
[Browsable(false)] public string UserString { get; set; }
UserString

Value

#
[Browsable(false)] public T Value { get; set; }

Methods

Duplicate

#
public IGH_ValueProxy Duplicate()
Duplicate

Duplicate_T

#
public abstract GH_ValueProxy<T> Duplicate_T()

FromString

#
Performs the String->Value parsing. The default implementation always returns False.
public virtual bool FromString(
in
The String to parse
)
Remarks: The result of the parse is stored in the local value pointer. If this function returns False there is no guarantee the local value is still valid.
True in cae of success, False in case of failure.
FromString

MutateString

#
public virtual string MutateString()
MutateString

ToString

#
Performs a default ToString operation on the local value. If the value is Nothing, an empty String is returned.
public override string ToString()
Remarks: Implementors: override this function if you need custom formatting logic.
Object.ToString
ToString