예제 #1
0
 /// <summary>
 /// Return true if it's the good type else false
 /// </summary>
 /// <typeparam name="TPage"></typeparam>
 /// <returns></returns>
 public static bool Is <TPage>(this IBasePageObject thisPage) where TPage : IBasePageObject
 {
     return(thisPage is TPage);
 }
예제 #2
0
 /// <summary>
 /// Inline cast to the given page type
 /// </summary>
 public static TPage As <TPage>(this IBasePageObject thisPage) where TPage : IBasePageObject
 {
     return((TPage)thisPage);
 }