Photomechanics API
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 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 or if IAsyncDisposableExtended.IsDisposed is true.
Type Constraints
TComponent :class 
TComponent :IDeviceApiComponent