Esempio n. 1
0
 /// <summary>
 /// Blocks the use of Cast on <see cref="IConditionResultOption{TSource}"/>.
 /// </summary>
 /// <typeparam name="TSource">The type of the source.</typeparam>
 /// <param name="source">The source.</param>
 public static void Cast <TSource>(this IConditionResultOption <TSource> source)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TypeConditionResultOption{TSource, TTarget}"/> class.
 /// </summary>
 /// <param name="source">The source object.</param>
 /// <param name="castSourceObject">
 /// If set to <c>true</c> the source object will be cast to <typeparamref name="TTarget"/>.
 /// </param>
 internal TypeConditionResultOption(TSource source, bool castSourceObject)
     : base(default, castSourceObject)
 {
     _source = source;
     _base   = this;
 }