Ejemplo n.º 1
0
        /// <summary>
        /// Registers a scope in the internal dictionary.
        /// </summary>
        /// <param name="name">The name of the scope.</param>
        /// <param name="description">The description of the scope.</param>
        internal static InstagramScope RegisterScope(string name, string description = null)
        {
            InstagramScope scope = new InstagramScope(name, description);

            Scopes.Add(scope.Name, scope);
            return(scope);
        }
 /// <summary>
 /// Adds the specified <paramref name="scope"/> to the list.
 /// </summary>
 /// <param name="scope">The scope to be added.</param>
 public void Add(InstagramScope scope)
 {
     _list.Add(scope);
 }