Interface ITypeInfo
Contract providing type information.
Inherited Members
Namespace: Kephas.Reflection
Assembly: Kephas.Core.dll
Syntax
public interface ITypeInfo : IElementInfo, IExpando, IDynamicMetaObjectProvider, IIndexable, IAttributeProvider
Properties
| Improve this Doc View SourceBaseTypes
Gets the bases of this ITypeInfo. They include the real base and also the implemented interfaces.
Declaration
IEnumerable<ITypeInfo> BaseTypes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ITypeInfo> | The bases. |
GenericTypeArguments
Gets a read-only list of ITypeInfo objects that represent the type arguments of a closed generic type.
Declaration
IReadOnlyList<ITypeInfo> GenericTypeArguments { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<ITypeInfo> | The generic arguments. |
GenericTypeDefinition
Gets a ITypeInfo object that represents a generic type definition from which the current generic type can be constructed.
Declaration
ITypeInfo GenericTypeDefinition { get; }
Property Value
Type | Description |
---|---|
ITypeInfo | The generic type definition. |
GenericTypeParameters
Gets a read-only list of ITypeInfo objects that represent the type parameters of a generic type definition (open generic).
Declaration
IReadOnlyList<ITypeInfo> GenericTypeParameters { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<ITypeInfo> | The generic arguments. |
Members
Gets the members.
Declaration
IEnumerable<IElementInfo> Members { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IElementInfo> | The members. |
Namespace
Gets the namespace of the type.
Declaration
string Namespace { get; }
Property Value
Type | Description |
---|---|
System.String | The namespace of the type. |
Properties
Gets the properties.
Declaration
IEnumerable<IPropertyInfo> Properties { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IPropertyInfo> | The properties. |
QualifiedFullName
Gets the full name qualified with the module where it was defined.
Declaration
string QualifiedFullName { get; }
Property Value
Type | Description |
---|---|
System.String | The full name qualified with the module. |
Methods
| Improve this Doc View SourceCreateInstance(IEnumerable<Object>)
Creates an instance with the provided arguments (if any).
Declaration
object CreateInstance(IEnumerable<object> args = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Object> | args | The arguments. |
Returns
Type | Description |
---|---|
System.Object | The new instance. |
GetMember(String, Boolean)
Gets a member by the provided name.
Declaration
IElementInfo GetMember(string name, bool throwIfNotFound = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The member name. |
System.Boolean | throwIfNotFound | True to throw if the requested member is not found. |
Returns
Type | Description |
---|---|
IElementInfo | The requested member, or |
MakeGenericType(IEnumerable<ITypeInfo>, IContext)
Constructs a generic type baed on the provided type arguments.
Declaration
ITypeInfo MakeGenericType(IEnumerable<ITypeInfo> typeArguments, IContext constructionContext = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ITypeInfo> | typeArguments | The type arguments. |
IContext | constructionContext | The construction context (optional). |
Returns
Type | Description |
---|---|
ITypeInfo | A constructed ITypeInfo. |