return method.IsSpecialName && OperatorUtility.operatorNames.ContainsKey(method.Name);
}
public static bool IsUserDefinedConversion(this MethodInfo method)
{
return method.IsSpecialName && (method.Name == "op_Implicit" || method.Name == "op_Explicit");
}
/// <remarks>This may return an open-constructed method as well.</remarks>
public static MethodInfo MakeGenericMethodVia(this MethodInfo openConstructedMethod, params Type[] closedConstructedParameterTypes)
{
Ensure.That(nameof(openConstructedMethod)).IsNotNull(openConstructedMethod);
Ensure.That(nameof(closedConstructedParameterTypes)).IsNotNull(closedConstructedParameterTypes);
if (!openConstructedMethod.ContainsGenericParameters)
{
// The method contains no generic parameters,
// it is by definition already resolved.
What’s wrong with the code?
plz check the Attached Files