Class TypeElement
Represents a type description with inherited information
about the properties, the constructor to create an instance of that type
as well as their expected parameters with the parameter type
Inheritance
System.Object
TypeElement
Assembly: Mars.Interfaces.dll
Syntax
public abstract class TypeElement : ModelElement, IEquatable<TypeElement>
Constructors
TypeElement(Type)
Declaration
protected TypeElement(Type metaType)
Parameters
Type |
Name |
Description |
Type |
metaType |
|
Properties
ActiveConstructor
The active constructor to create
a new instance of this type
Declaration
public abstract ConstructorType ActiveConstructor { get; }
Property Value
Constructors
All available constructors of the type
Declaration
public IEnumerable<ConstructorType> Constructors { get; }
Property Value
DescribedProperties
Gets all properties of this type description which have an assigned
PropertyDescription annotation.
Declaration
public List<PropertyType> DescribedProperties { get; }
Property Value
Gets all input properties of this type description which can be written and are public.
PropertyDescription annotation.
Declaration
public List<PropertyType> InputProperties { get; }
Property Value
Interfaces
All implemented interfaces of the type
Declaration
public IEnumerable<Type> Interfaces { get; }
Property Value
Type |
Description |
IEnumerable<Type> |
|
The static type structure of the agent or layer class
Declaration
public Type MetaType { get; }
Property Value
OutputProperties
Gets all properties marked or inferred as the output.
Currently supported are only primitive, enum and string types
Declaration
public List<PropertyType> OutputProperties { get; }
Property Value
Properties
The public properties of the type with mapping of the property name
to the property description
Declaration
public IDictionary<string, PropertyType> Properties { get; }
Property Value
TypeInterfaces
An optional set of own defined and implemented interfaces for this type
Declaration
public Type[] TypeInterfaces { get; set; }
Property Value
TypeMapping
The mapping entry point for this type
with all parameter inputs
Declaration
public abstract TypeMapping TypeMapping { get; }
Property Value
TypeName
The full qualified name of the type
including namespace and class name
Declaration
public string TypeName { get; }
Property Value
Type |
Description |
System.String |
|
TypeSimpleName
The short name of the type member
Declaration
public string TypeSimpleName { get; }
Property Value
Type |
Description |
System.String |
|
Methods
Equals(TypeElement)
Declaration
public bool Equals(TypeElement other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
Implements
IEquatable<>