forked from segmentio/Analytics.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDict.cs
More file actions
26 lines (25 loc) · 668 Bytes
/
Dict.cs
File metadata and controls
26 lines (25 loc) · 668 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
namespace Segment.Model
{
/// <summary>
/// An API object wrapper over Dictionary<string, object>
/// </summary>
public class Dict : Dictionary<string, object>
{
/// <summary>
/// Adds the key/val pair to the Props API dictionary. Used for chaining API purposes.
/// </summary>
/// <param name="key">Key</param>
/// <param name="val">Value</param>
/// <returns>An instance of the Props for chaining</returns>
public new Dict Add(string key, object val)
{
base.Add (key, val);
return this;
}
}
}