Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: Generex<T, TResult> AnyOfType<TResult>()

  • Declared in: RT.Generexes.Generex<T>

Declaration

public static Generex<T, TResult> AnyOfType<TResult>()

Summary

Returns a regular expression that matches a single object of the specified type.

Generic type parameters

TResult
  • Must derive from: T.
The type of object to match.

Example

The following example code creates a regular expression that matches, within a collection of Animal objects, an object of type Giraffe.

var regex = Generex<Animal>.Any<Giraffe>()