/// <summary> /// Checks, whether the given parameter can be passed via the URL. /// </summary> /// <param name="info">The parameter to be analyzes</param> /// <returns><c>true</c>, if the given parameter can be passed via the URL</returns> public static bool CheckSimple(this ParameterInfo info) { return(info.CheckNullable() || info.ParameterType.IsPrimitive || info.ParameterType == typeof(string) || info.ParameterType.IsEnum || info.ParameterType == typeof(Guid)); }