Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(250)

Side by Side Diff: Src/GoogleApis/Apis/Requests/Parameters/ParameterCollection.cs

Issue 13412046: Reimplement OAuth2 library - Step 1 (Closed) Base URL: https://google-api-dotnet-client.googlecode.com/hg/
Patch Set: minor Created 10 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 Copyright 2011 Google Inc 2 Copyright 2011 Google Inc
3 3
4 Licensed under the Apache License, Version 2.0 (the "License"); 4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License. 5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at 6 You may obtain a copy of the License at
7 7
8 http://www.apache.org/licenses/LICENSE-2.0 8 http://www.apache.org/licenses/LICENSE-2.0
9 9
10 Unless required by applicable law or agreed to in writing, software 10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS, 11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and 13 See the License for the specific language governing permissions and
14 limitations under the License. 14 limitations under the License.
15 */ 15 */
16 16
17 using System; 17 using System;
18 using System.Collections; 18 using System.Collections;
19 using System.Collections.Generic; 19 using System.Collections.Generic;
20
20 using Google.Apis.Util; 21 using Google.Apis.Util;
21 22
22 namespace Google.Apis.Requests 23 namespace Google.Apis.Requests.Parameters
23 { 24 {
24 /// <summary> 25 /// <summary>
25 /// A collection of parameters (key value pairs). May contain duplicate keys . 26 /// A collection of parameters (key value pairs). May contain duplicate keys .
26 /// </summary> 27 /// </summary>
27 public class ParameterCollection : List<KeyValuePair<string, string>> 28 public class ParameterCollection : List<KeyValuePair<string, string>>
28 { 29 {
29 public ParameterCollection() : base() { } 30 public ParameterCollection() : base() { }
30 public ParameterCollection(IEnumerable<KeyValuePair<string, string>> col lection) : base(collection) { } 31 public ParameterCollection(IEnumerable<KeyValuePair<string, string>> col lection) : base(collection) { }
31 32
32 /// <summary> 33 /// <summary>
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 { 161 {
161 // Otherwise just convert it to a string. 162 // Otherwise just convert it to a string.
162 collection.Add(pair.Key, pair.Value == null ? null : Util.Ut ilities.ConvertToString(pair.Value)); 163 collection.Add(pair.Key, pair.Value == null ? null : Util.Ut ilities.ConvertToString(pair.Value));
163 } 164 }
164 } 165 }
165 166
166 return collection; 167 return collection;
167 } 168 }
168 } 169 }
169 } 170 }
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b