Photomechanics API
Photomechanics.Photo3DStudio.Common.Extensions.ComponentBasedDeviceApiExtensions Class Reference

Extensions for IComponentBasedDeviceApi. More...

Static Public Member Functions

static Boolean HasComponent< TComponent > (this IComponentBasedDeviceApi api)
 Check whether API has component of given type. More...
 

Detailed Description

Extensions for IComponentBasedDeviceApi.

Member Function Documentation

◆ HasComponent< TComponent >()

static Boolean Photomechanics.Photo3DStudio.Common.Extensions.ComponentBasedDeviceApiExtensions.HasComponent< TComponent > ( this IComponentBasedDeviceApi  api)
static

Check whether API has component of given type.

Parameters
apiDevice API.
Template Parameters
TComponentAPI component type
Returns
True if component present. False otherwise.
Type Constraints
TComponent :class 
TComponent :IDeviceApiComponent