Replace ToRequestParameters implementations.

This commit is contained in:
Haacked
2013-10-27 18:36:40 -07:00
parent 5cee6501db
commit fbe0be1220
8 changed files with 57 additions and 158 deletions
+1 -2
View File
@@ -21,12 +21,11 @@ namespace Octokit
{
var properties = _propertiesMap.GetOrAdd(GetType(), GetPropertiesForType);
var dict = (from property in properties
return (from property in properties
let value = GetValue(property)
let key = GetKey(property)
where value != null
select new { key, value }).ToDictionary(kvp => kvp.key, kvp => kvp.value);
return dict;
}
static List<PropertyInfo> GetPropertiesForType(Type type)