Class TypeInfo

Used to gather information about used type in the data flow component.

Inheritance
System.Object
TypeInfo
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
    public class TypeInfo

Constructors

TypeInfo(Type)

Declaration
    public TypeInfo(Type typ)
Parameters
TypeNameDescription
System.Typetyp

Properties

IsArray

Indicates if the type is an array (e.g. string[])

Declaration
    public bool IsArray { get; set; }
Property Value
TypeDescription
System.Boolean

IsDynamic

Indicates if the type is an ExpandoObject

Declaration
    public bool IsDynamic { get; set; }
Property Value
TypeDescription
System.Boolean

Properties

Property names of the type

Declaration
    public PropertyInfo[] Properties { get; set; }
Property Value
TypeDescription
System.Reflection.PropertyInfo[]

PropertiesByName

Declaration
    public Dictionary<string, PropertyInfo> PropertiesByName { get; set; }
Property Value
TypeDescription
System.Collections.Generic.Dictionary<System.String, System.Reflection.PropertyInfo>

PropertyIndex

Mapping of property name and its index the Properties array.

Declaration
    protected Dictionary<string, int> PropertyIndex { get; set; }
Property Value
TypeDescription
System.Collections.Generic.Dictionary<System.String, System.Int32>

Methods

GatherTypeInfo()

Reads the type information from ETLBox.DataFlow.TypeInfo.Typ.

Declaration
    public TypeInfo GatherTypeInfo()
Returns
TypeDescription
TypeInfo

The TypeInfo object containing information about the Typ.

IsNumericType(Type)

Determines if a type is numeric. Nullable numeric types are considered numeric.

Declaration
    public static bool IsNumericType(Type type)
Parameters
TypeNameDescription
System.Typetype
Returns
TypeDescription
System.Boolean
Remarks

Boolean is not considered numeric. http://stackoverflow.com/a/5182747/172132

RetrieveAdditionalTypeInfo(PropertyInfo, Int32)

Declaration
    protected virtual void RetrieveAdditionalTypeInfo(PropertyInfo propInfo, int currentIndex)
Parameters
TypeNameDescription
System.Reflection.PropertyInfopropInfo
System.Int32currentIndex