isSubtypeOfWinRTEnum<T> function

bool isSubtypeOfWinRTEnum<T>()

Determines whether T is a subtype of WinRTEnum.

isSubtypeOfWinRTEnum<AsyncStatus>(); // true
isSubtypeOfWinRTEnum<FileAttributes>(); // true

Implementation

bool isSubtypeOfWinRTEnum<T>() => isSubtype<T, WinRTEnum>();