Exemple #1
0
 public SpecializedGenericMethodInstanceReference(MethodSymbol underlyingMethod)
     : base(underlyingMethod)
 {
     Debug.Assert(
         PEModuleBuilder.IsGenericType(underlyingMethod.ContainingType) &&
         underlyingMethod.ContainingType.IsDefinition
         );
     _genericMethod = new SpecializedMethodReference(underlyingMethod);
 }
 public SpecializedGenericMethodInstanceReference(MethodSymbol underlyingMethod)
     : base(underlyingMethod)
 {
     Debug.Assert(PEModuleBuilder.IsGenericType(underlyingMethod.ContainingType) && underlyingMethod.ContainingType.IsDefinition);
     _genericMethod = new SpecializedMethodReference(underlyingMethod);
 }