GeneralProxy<T>

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

Constructors

GeneralProxy

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

GeneralProxy

#
protected GeneralProxy(Type type, Guid ioId, Nomen nomen, Plugin plugin, bool? obsolete = null)
Create a proxy from an instance.
type (Type)
ioId (Guid)
nomen (Nomen)
plugin (Plugin)
obsolete (bool? = null)

Properties

Icon

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

Id

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

Nomen

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

Obsolete

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

Plugin

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

SearchableNomen

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

Type

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

Methods

Emit

#
public virtual T Emit(string initCode = null)
Emit a new instance of this object.
initCode (string = 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

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