/// <summary>
 /// Determines whether a <see cref="ParameterInfo"/> is by-reference, output or a return value.
 /// </summary>
 /// <param name="parameterInfo">
 /// The parameter information.
 /// </param>
 /// <returns>
 /// <c>true</c>if <paramref name="parameterInfo"/> is by-reference, output or a return value; otherwise <c>false</c>.
 /// </returns>
 public static bool IsByRefOutOrReturnValue(this ParameterInfo parameterInfo)
 {
     return(parameterInfo.IsByRefOrOut() || parameterInfo.IsReturnValue());
 }