GeneralProxy<T>

References
public abstract class GeneralProxy<T>
Base class for creating type proxies.
T

Constructors

GeneralProxy

#
Create a proxy from an instance.
protected GeneralProxy(
T
instance,
nomen,
plugin
)

GeneralProxy

#
Create a proxy from an instance.
protected GeneralProxy(
type,
ioId,
nomen,
plugin,
obsolete = null
)

Properties

Icon

#
Gets the icon associated with this object.
public virtual IIcon Icon { get; }

Id

#
Gets the ID for this object.
public Guid Id { get; }

Nomen

#
Gets the nomen describing this object.
public Nomen Nomen { get; }

Obsolete

#
Gets whether this proxy represents an obsolete (or otherwise hidden) object.
public bool Obsolete { get; }

Plugin

#
Gets the plugin to which is object belongs.
public Plugin Plugin { get; }

SearchableNomen

#
Gets the searchable version of the nomen.
public Nomen SearchableNomen { get; }

Type

#
Gets the Type of this object.
public Type Type { get; }

Methods

Emit

#
Emit a new instance of this object.
public virtual T Emit(
initCode = null
If provided, this initialisation string will be passed to the object. Not all objects support init codes, but if it doesn't, and you supply one anyway, the code will just be ignored.
)

ExtractIconFromInstance

#
Extract the icon (if any) from an instance.
protected abstract IIcon ExtractIconFromInstance(
T
instance
)