コード例 #1
0
 /// <summary>
 /// Gets all decorators that can convert a reference to the given type</summary>
 /// <typeparam name="T">Decorator type, must be ref type</typeparam>
 /// <returns>Enumerable returning all decorators of the given type</returns>
 public IEnumerable <T> AsAll <T>()
     where T : class
 {
     return(Adapters.AsAll <T>(this));
 }
コード例 #2
0
 /// <summary>
 /// Returns an enumeration of all decorators that can convert a reference to the given type</summary>
 /// <typeparam name="U">Decorator type, must be ref type</typeparam>
 /// <returns>Enumerable returning all decorators of the given type</returns>
 public IEnumerable <U> AsAll <U>()
     where U : class
 {
     return(Adapters.AsAll <U>(this));
 }