예제 #1
0
파일: Extensions.cs 프로젝트: wtf3505/home
 ReferenceCache <TParameter, TResult>(this IParameterizedSource <TParameter, TResult> @this)
     where TParameter : class where TResult : class
 =>
 new DelegatedSource <TParameter, TResult>(
     ReferenceCachingAlteration <TParameter, TResult>
     .Default.Get(@this.ToSelectionDelegate()));
 /// <summary>This is considered unsupported internal framework code and is not intended for external use.</summary>
 /// <typeparam name="TParameter">The type of the t parameter.</typeparam>
 /// <typeparam name="TResult">The type of the t result.</typeparam>
 /// <param name="this">The this.</param>
 /// <returns>ISpecification&lt;TParameter&gt;.</returns>
 public static ISpecification <TParameter> IfAssigned <TParameter, TResult>(
     this IParameterizedSource <TParameter, TResult> @this)
 => @this.ToSelectionDelegate()
 .IfAssigned();