Normalize cr/lf/tab

This commit is contained in:
Stephan
2017-07-20 11:21:28 +02:00
parent fa6c147a65
commit c76403077f
2466 changed files with 26012 additions and 26010 deletions

View File

@@ -6,8 +6,8 @@ using System.Text;
namespace Umbraco.Core
{
internal static class NameValueCollectionExtensions
{
internal static class NameValueCollectionExtensions
{
public static IEnumerable<KeyValuePair<string, string>> AsEnumerable(this NameValueCollection nvc)
{
foreach (string key in nvc.AllKeys)
@@ -16,10 +16,10 @@ namespace Umbraco.Core
}
}
public static bool ContainsKey(this NameValueCollection collection, string key)
{
return collection.Keys.Cast<object>().Any(k => (string) k == key);
}
public static bool ContainsKey(this NameValueCollection collection, string key)
{
return collection.Keys.Cast<object>().Any(k => (string) k == key);
}
public static T GetValue<T>(this NameValueCollection collection, string key, T defaultIfNotFound)
{
@@ -35,8 +35,8 @@ namespace Umbraco.Core
}
var result = val.TryConvertTo<T>();
return result.Success ? result.Result : defaultIfNotFound;
}
}
}
}