System.Linq.Expressions.Error.UserDefinedOperatorMustNotBeVoid C# (CSharp) Method

UserDefinedOperatorMustNotBeVoid() static private method

ArgumentException with message like "User-defined operator method '{0}' must not be void."
static private UserDefinedOperatorMustNotBeVoid ( object p0, string paramName ) : Exception
p0 object
paramName string
return Exception
        internal static Exception UserDefinedOperatorMustNotBeVoid(object p0, string paramName)
        {
            return new ArgumentException(Strings.UserDefinedOperatorMustNotBeVoid(p0), paramName);
        }
        /// <summary>
Error