Example #1
0
 /// <summary>
 /// Wraps this instance with the <see cref="CastingComparer{T,TTarget}"/>.
 /// </summary>
 /// <typeparam name="TTarget">The type to provide the comparer for (by wrapping this comparer).</typeparam>
 public AdvancedComparer <TTarget> Cast <TTarget>()
 {
     if (typeof(TTarget) == typeof(T))
     {
         return(this as AdvancedComparer <TTarget>);
     }
     else
     {
         return(Implementation.Cast <TTarget>());
     }
 }