Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Align Mono and CoreCLR with nameof for GetConstructor
  • Loading branch information
BartoszKlonowski committed Jul 27, 2021
commit b2c2b4a83ed919cbc968d03c1de1c95a51e04e2d
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static ConstructorInfo GetConstructor(Type type, ConstructorInfo construc
throw new ArgumentException(SR.Argument_ConstructorNeedGenericDeclaringType, nameof(constructor));

if (type.GetGenericTypeDefinition() != constructor.DeclaringType)
throw new ArgumentException(SR.Argument_InvalidConstructorDeclaringType, nameof(type));
throw new ArgumentException(SR.Argument_InvalidConstructorDeclaringType, nameof(constructor));

// TypeBuilder G<T> ==> TypeBuilderInstantiation G<T>
if (type is TypeBuilder && type.IsGenericTypeDefinition)
Expand Down