Class ICapabilityExtensions
Extension methods for ICapability.
Inheritance
System.Object
ICapabilityExtensions
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: Phoenix.Devices
Assembly: Phoenix.Abstractions.Devices.dll
Syntax
public static class ICapabilityExtensions
Methods
View SourceHasCapabilityInterface<T>(ICapability)
Checks to see if this object implements the specific interface.
Declaration
public static bool HasCapabilityInterface<T>(this ICapability self)
Parameters
Type | Name | Description |
---|---|---|
ICapability | self | The object being extended. |
Returns
Type | Description |
---|---|
System.Boolean | True if it is implemented, false otherwise. |
Type Parameters
Name | Description |
---|---|
T | The interface to check for. |
IsCapable(ICapability, Type[])
Determines if this object implements the specified interface types.
Declaration
public static bool IsCapable(this ICapability self, params Type[] interfaceTypes)
Parameters
Type | Name | Description |
---|---|---|
ICapability | self | The object being extended. |
System.Type[] | interfaceTypes | A list of the interfaces to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if the object implements all of the interfaces, false otherwise. |