Пример #1
0
 /// <summary>
 /// Predicate that identifies if the given variable descriptor is not of the specified kind.
 /// </summary>
 /// <typeparam name="TKind">The kind to check.</typeparam>
 /// <param name="descriptor">The variable descriptor to check.</param>
 /// <returns><code>True</code> if the given descriptor is not of the specified kind.</returns>
 public static bool IsNotOfKind <TKind>(this VariableDescriptor descriptor)
 {
     return(!IsOfKind <TKind>(descriptor));
 }
Пример #2
0
 /// <summary>
 /// Predicate that identifies if the given variable descriptor is of the specified kind.
 /// </summary>
 /// <typeparam name="TKind">The kind to check.</typeparam>
 /// <param name="descriptor">The variable descriptor to check.</param>
 /// <returns><code>True</code> if the given descriptor is of the specified kind.</returns>
 public static bool IsOfKind <TKind>(this VariableDescriptor descriptor)
 {
     return(descriptor.Kind is TKind);
 }