Example #1
0
 /// <summary>
 /// Creates a generic specialization of a particular generic
 /// type declaration
 /// </summary>
 /// <param name="declaration">
 /// The generic type declaration that is specialized into
 /// a concrete type.
 /// </param>
 /// <param name="genericArguments">
 /// The type arguments with which the generic type is
 /// specialized.
 /// </param>
 /// <returns>A generic specialization.</returns>
 public static DirectTypeSpecialization MakeGenericType(
     this IType declaration,
     params IType[] genericArguments)
 {
     return(DirectTypeSpecialization.Create(declaration, genericArguments));
 }
Example #2
0
 /// <summary>
 /// Creates a generic specialization of a particular generic
 /// type declaration
 /// </summary>
 /// <param name="declaration">
 /// The generic type declaration that is specialized into
 /// a concrete type.
 /// </param>
 /// <param name="genericArguments">
 /// The type arguments with which the generic type is
 /// specialized.
 /// </param>
 /// <returns>A generic specialization.</returns>
 public static DirectTypeSpecialization MakeGenericType(
     this IType declaration,
     IReadOnlyList <IType> genericArguments)
 {
     return(DirectTypeSpecialization.Create(declaration, genericArguments));
 }