IGH_ValueProxy

References
public interface IGH_ValueProxy

Properties

IsParsable

#
Gets a value indicating whether or not the type can be instantiated from a String
bool IsParsable { get; }

IsValid

#
Gets a value indicating whether or not the current value is valid
bool IsValid { get; }

ProxyName

#
Gets a human-friendly name description of the template type
string ProxyName { get; }

ProxyType

#
Gets the System.Type description of the template type
Type ProxyType { get; }

ProxyValue

#
Gets an instance of the local template type object
object ProxyValue { get; }

UserString

#
Gets or sets the user-defined string that describes this proxy This only really makes sense if the Proxy is Parsable.
string UserString { get; set; }
If the proxy contains no user-string, the ToString result is returned instead

Methods

Duplicate

#
Create an exact duplicate of the type.
IGH_ValueProxy Duplicate()
Remarks: Implementors: Do not maintain references to class instances. Copy EVERYTHING.

FromString

#
If IsParsable(), then attempts to convert the string to a generic type value
bool FromString(
in
The String to parse
)
True on success, false on failure. This method should not throw exceptions.

MutateString

#
Munge a string to remove obvious errors on account of the user.
string MutateString()

ToString

#
Returns a String description of the current value.
string ToString()
Remarks: If the implementation IsParsable(), then this representation must be in parsable format.