Click here to Skip to main content
15,885,032 members
Articles / Programming Languages / C#

A Concurrent Collection: a MultiMap Generic Collection Class in C# - Part 2

Rate me:
Please Sign up or sign in to vote.
4.87/5 (19 votes)
5 Jun 2009CPOL10 min read 101.8K   3.4K   73  
MultiMap is similar to a .NET Dictionary collection type, but accepts duplicate Key,Value pairs during addition. The MultiMap collection is also a concurrent collection.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BK.Util
{
    /// <summary>
    /// The class BK.Util.MultiMap always throws one exception type - MultiMapBKException
    /// </summary>
    public class MultiMapBKException: Exception
    {
        /// <summary>
        /// Constructor of Exception class
        /// </summary>
        /// <param name="ExceptionParam"></param>
        /// <param name="ExMessage"></param>
        /// 
        public MultiMapBKException(Exception ExceptionParam, string ExMessage) : base(ExMessage, ExceptionParam) 
        {
        }

        /// <summary>
        /// Default Constructor of Exception class
        /// </summary>
        public MultiMapBKException():base()
        {
        }

        /// <summary>
        ///  Constructor of Exception class
        /// </summary>
        /// <param name="exMessage"></param>
        public MultiMapBKException(string exMessage):base(exMessage)
        {

        }

        /// <summary>
        /// Multimap Exception constructor
        /// </summary>
        /// <param name="seInfo"></param>
        /// <param name="seCtxt"></param>
        public MultiMapBKException(System.Runtime.Serialization.SerializationInfo seInfo,
            System.Runtime.Serialization.StreamingContext seCtxt)
            : base(seInfo, seCtxt)
        {
        }
            


    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions