mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 11:05:56 +00:00
Replace ToRequestParameters implementations.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user