TypeAssistantServer
Provides static methods for registering and retrieving type assistants.
Fields
Methods
FindByType
#Find the type assistent associated with a specific type id.
Returns: Type assistent or null.
FindByValue
#Find the type assistent associated with a specific object.
Returns: Type assistent or null.
FindCurveAssistant
#Find the curve assistent associated with a specific object.
Returns: Curve assistent or null.
FindCurveAssistant
#Find the curve assistent associated with a specific type id.
public static void FindCurveAssistant()
FindOrMake
#Find the type assistent associated with a specific object. If no direct assistant can be found, a reimplementation of a more derived type may be constructed.
Returns: Type assistent or null.
FindOrMake
#Find the type assistent associated with a specific type id. If no direct assistant can be found, a reimplementation of a more derived type may be constructed.
Returns: Type assistent or null.
FindOrMake<T>
#Find the type assistent associated with a specific type. If no direct assistant can be found, a reimplementation of a more derived type may be constructed.
FindSurfaceAssistant
#Find the surface assistent associated with a specific object.
Returns: Surface assistent or null.
FindSurfaceAssistant
#Find the surface assistent associated with a specific type id.
public static void FindSurfaceAssistant()
Register
#Register a curve assistant.
Returns: True on success, false if the assistant is null or if a competing assistant was already defined.
Register
#Register a surface assistant.
Returns: True on success, false if the assistant is null or if a competing assistant was already defined.
Register
#Register a type assistant.
Returns: True on success, false if the assistant is null or if a competing assistant was already defined.
Sort
#Sort a twig containing potentially a variety of different data types and null values. Some effort is made to ensure this method doesn't have too much overhead when sorting twigs which contain only primitive data types such as doubles, integers or strings.
Returns: Twig with sorted values.
ToNumericString
#Try and convert a value into a Prose.Text. If there is no assistant, the ToString() method will be invoked.
Transform
#Try and transform a pear using the registered type assistant.
Returns: True if a type assistant was defined for this type and supports transforming values.
Transform
#Try and transform a value using the registered type assistant.
Returns: True if a type assistant was defined for this type and supports transforming values.