Constructors

GH_Goo

#
Blank constructor, m_value will be set to default (null for reference types, zeroes for value types)
protected GH_Goo()

GH_Goo

#
Copy constructor, copies the data from another GH_Goo(Of T) instance. Reference types will not be duplicated.
protected GH_Goo(
GH_Goo<T>
other
Goo instance to copy.
)

GH_Goo

#
Data constructor, m_value will be set to internal_data.
protected GH_Goo(
T
internal_data
Value to store inside this Goo instance.
)

Fields

m_value

#
protected T m_value

Properties

IsValid

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

IsValidWhyNot

#
Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.
public virtual string IsValidWhyNot { get; }
IsValidWhyNot

TypeDescription

#
Gets a description of the type of the implementation.
public abstract string TypeDescription { get; }
TypeDescription

TypeName

#
Gets the name of the type of the implementation.
public abstract string TypeName { get; }
TypeName

Value

#
Gets or sets the internal data.
public virtual T Value { get; set; }

Methods

CastFrom

#
Attempt a cast from generic data.
public virtual bool CastFrom(
source
Reference to data that should be cast.
)
Remarks: If False, the contents of this instance are not to be trusted.
True on success, false on failure.
CastFrom

CastTo<Q>

#
Attempt a cast to type Q.
public virtual bool CastTo<Q>(
ref Q
target
Pointer to target of cast.
)
Remarks: If false, the target instance contents are not guaranteed to be valid.
True on success, false on failure.
CastTo

Duplicate

#
Make a complete duplicate of this instance. No shallow copies.
public abstract IGH_Goo Duplicate()
Remarks: Classes which implement this interface should also provide type specific Duplicate methods
Duplicate

EmitProxy

#
Create a new proxy for this instance. Return Null if this class does not support proxies.
public virtual IGH_GooProxy EmitProxy()
EmitProxy

Read

#
Default behaviour is to return True.
public virtual bool Read(
reader
)
Read

ScriptVariable

#
This function will be called when the local IGH_Goo instance disappears into a user Script. This would be an excellent place to cast your IGH_Goo type to a simple data type.
public virtual object ScriptVariable()
The default implementation of this function returns the Value instance.
ScriptVariable

ToString

#
Creates a string description of the current instance value.
public abstract override string ToString()
Object.ToString
ToString

Write

#
Default behaviour is to return True.
public virtual bool Write(
writer
)
Write