private static void ValidateOperator(MethodInfo method)
{
Debug.Assert(method != null);
ValidateMethodInfo(method, nameof(method));
if (!method.IsStatic)
throw Error.UserDefinedOperatorMustBeStatic(method, nameof(method));
if (method.ReturnType == typeof(void))
throw Error.UserDefinedOperatorMustNotBeVoid(method, nameof(method));
}