IGH_ValueProxy

References
public interface IGH_ValueProxy

Properties

IsParsable

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

IsValid

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

ProxyName

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

ProxyType

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

ProxyValue

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

UserString

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

Methods

Duplicate

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

FromString

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

MutateString

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

ToString

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