If the type is unclear for a particular feature some more complex code is needed:
locator.bindComponent( feature, "Feature" );
if( feature.isValid )
{
Console.WriteLine( "Feature {0} is a {1}", feature.name, feature.typeAsString );
switch( feature.type )
{
case TComponentType.ctPropString:
doStringPropAction( stringProp );
break;
case TComponentType.ctPropInt:
doIntPropAction( intProp );
break;
case TComponentType.ctPropInt64:
doLongPropAction( longProp );
break;
case TComponentType.ctPropFloat:
doFloatPropAction( floatProp );
break;
default:
break;
}
}
else
{
}
A base class to implement access to internal driver components.
Definition Component.cs:133
A class to locate components within the driver.
Definition DeviceComponentLocator.cs:74
This class and its functions represent an actual device detected by this interface in the current sys...
Definition Device.cs:91
Provided for convenience only. This type represents a standard float property type.
Definition EnumPropertyF.cs:11
Provided for convenience only. This type represents a standard 64-bit integer property type.
Definition EnumPropertyI64.cs:11
Provided for convenience only. This type represents a standard 32-bit integer property type.
Definition EnumPropertyI.cs:11
A class to represent string properties.
Definition PropertyS.cs:10
This namespace contains classes and functions belonging to the image acquisition module of this SDK.
Definition Enumerations.cs:2
Definition Enumerations.cs:2
Definition Enumerations.cs:2