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

#
protected GH_ValueProxy(T nValue, string nProxyName, bool bIsStringProxy)
Default constructor for the base class. All derived classes must call this constructor.
nValue (T)The value to store in this proxy
nProxyName (string)The human-friendly name of this value type
bIsStringProxy (bool)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

#
[Browsable(false)] public string UserString { get; set; }
Wraps the protected m_UserString field
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

#
public virtual bool FromString(string in)
Performs the String->Value parsing. The default implementation always returns False.
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.
in (string)The String to parse
True in cae of success, False in case of failure.
FromString

MutateString

#
public virtual string MutateString(string in)
in (string)
MutateString

ToString

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