Browse Source

Implement `IEnumerable` interface.

pull/10139/head
maliming 5 years ago
parent
commit
df5d3e0cc4
  1. 13
      framework/src/Volo.Abp.Http.Client/Volo/Abp/Http/Client/ClientProxying/ClientProxyRequestTypeValue.cs

13
framework/src/Volo.Abp.Http.Client/Volo/Abp/Http/Client/ClientProxying/ClientProxyRequestTypeValue.cs

@ -1,9 +1,10 @@
using System; using System;
using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
namespace Volo.Abp.Http.Client.ClientProxying namespace Volo.Abp.Http.Client.ClientProxying
{ {
public class ClientProxyRequestTypeValue public class ClientProxyRequestTypeValue : IEnumerable<KeyValuePair<Type, object>>
{ {
public List<KeyValuePair<Type, object>> Values { get; private set; } public List<KeyValuePair<Type, object>> Values { get; private set; }
@ -16,5 +17,15 @@ namespace Volo.Abp.Http.Client.ClientProxying
{ {
Values.Add(new KeyValuePair<Type, object>(type, value)); Values.Add(new KeyValuePair<Type, object>(type, value));
} }
public IEnumerator<KeyValuePair<Type, object>> GetEnumerator()
{
return Values.GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
} }
} }

Loading…
Cancel
Save