Example #1
0
 /// <summary>
 /// Adds an APIData with the specified URL inside the referenced dictionary with the listed Key.
 /// </summary>
 /// <param name="key">API Key</param>
 /// <param name="apidata">Function used to pass constructor of child class</param>
 /// <param name="url">argument for the child's constructor</param>
 /// <param name="api_dictionary">Should always be apiInformation</param>
 protected virtual void apiDictAdd(string key, string uri, newChildObject apiData, Dictionary <string, APIData> api_dictionary)
 {
     api_dictionary.Add(key, apiData(uri));
 }
 /// <summary>
 /// Adds an APIData with the specified URL inside the referenced dictionary with the listed Key.
 /// </summary>
 /// <param name="key">API Key</param>
 /// <param name="apidata">Function used to pass constructor of child class</param>
 /// <param name="url">argument for the child's constructor</param>
 /// <param name="api_dictionary">Should always be apiInformation</param>
 protected virtual void apiDictAdd(string key, string uri, newChildObject apiData, Dictionary<string, APIData> api_dictionary)
 {
     api_dictionary.Add(key, apiData(uri));
 }