Reflective Attribute, Context, and Base.
Reflective Class
Base class which provides for simple reflection of methods through a given interface.
public class Reflective
Default constructor.
Syntaxprotected Reflective ()
Remarks
Internal Use Only. Overridden by subclasses to return only those contexts requested which are allowed for that type of script.
SyntaxValue
Documentation for this section has not yet been entered.
Returns a TInterface object if one can be created, null otherwise
Syntax[Sansar.Script.NonReflective] public TInterface AsInterface () where TInterface : class
Type Parameters
TInterface
The interface describing the methods and properties desired.
Generates a string which shows all the members which can be reflected.
Syntax[Sansar.Script.NonReflective] public FullInterface ( interfaceName)
Parameters
interfaceName
The name to give the generated interface class in the output.
Override ReflectiveContexts to limit which contexts this Reflective interface is available in when registered with.
Syntax[Sansar.Script.NonReflective] protected virtual ReflectiveContexts { get; }
Value
Documentation for this section has not yet been entered.
Override ReflectiveName to change which name this class will be registered as in the Reflective system.
Syntax[Sansar.Script.NonReflective] protected virtual ReflectiveName { get; }
Value
Documentation for this section has not yet been entered.
Syntax[Sansar.Script.NonReflective] public Register ()
Remarks
Syntax[Sansar.Script.NonReflective] public Unregister ()
Remarks
Use with and to specify specific access context for the registered reflective class.
[System.Flags] public enum Reflective.Context
Documentation for this section has not yet been entered.
Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Internal support class.
public class Reflective.ReflectiveBase
Documentation for this section has not yet been entered.
Syntaxpublic Reflective.ReflectiveBase ()
Remarks
Wrapped object.
Syntaxprotected originalObject
Remarks
Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Returns
A TInterface instance if this object is compatible. An object is compatible if it implements the interface or has public methods and properties which match TInterface.
Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Returns
The generated string. If no members can be reflected, returns the empty string
Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
All
All contexts.
None
Not discoverable via FindReflective or FindScript
ObjectPrivate
Works only for running scripts, makes them findable in ObjectPrivate.FindScript and ObjectPrivate.FindScripts.
ScenePrivate
Findable in ScenePrivate.FindReflective
ScenePublic
Findable in ScenePublic.FindReflective