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
Type | Name | Description |
---|---|---|
System.Type | typ |
Properties
IsArray
Indicates if the type is an array (e.g. string[])
Declaration
public bool IsArray { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsDynamic
Indicates if the type is an ExpandoObject
Declaration
public bool IsDynamic { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Properties
Property names of the type
Declaration
public PropertyInfo[] Properties { get; set; }
Property Value
Type | Description |
---|---|
System.Reflection.PropertyInfo[] |
PropertiesByName
Declaration
public Dictionary<string, PropertyInfo> PropertiesByName { get; set; }
Property Value
Type | Description |
---|---|
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
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.Int32> |
Methods
GatherTypeInfo()
Reads the type information from ETLBox.DataFlow.TypeInfo.Typ.
Declaration
public TypeInfo GatherTypeInfo()
Returns
Type | Description |
---|---|
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
Type | Name | Description |
---|---|---|
System.Type | type |
Returns
Type | Description |
---|---|
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
Type | Name | Description |
---|---|---|
System.Reflection.PropertyInfo | propInfo | |
System.Int32 | currentIndex |