/// <summary>
 /// Initialisation des constantes dans le dictionnaire
 /// </summary>
 static CapitalTypeCode()
 {
     APPROVED = new CapitalTypeCode(
         new CapitalTypeCodeAdaptee("APPROVED", 0, "Approved capital."));
     ISSUED_VOTING_RIGHTS = new CapitalTypeCode(
         new CapitalTypeCodeAdaptee("ISSUED_VOTING_RIGHTS", 1, "Issued voting rights."));
     MAXIMUM_INCREASE = new CapitalTypeCode(
         new CapitalTypeCodeAdaptee("MAXIMUM_INCREASE", 2, "Maximum amount of increase."));
     OUTSTANDING = new CapitalTypeCode(
         new CapitalTypeCodeAdaptee("OUTSTANDING", 3, "Outstanding capital."));
     REDEEMED = new CapitalTypeCode(
         new CapitalTypeCodeAdaptee("REDEEMED", 4, "Redeemed capital."));
     STATED_CAPITAL = new CapitalTypeCode(
         new CapitalTypeCodeAdaptee("STATED_CAPITAL", 5, "Stated capital."));
     TREASURY_STOCK = new CapitalTypeCode(
         new CapitalTypeCodeAdaptee("TREASURY_STOCK", 6, "Issued reserve capital."));
     UNISSUED = new CapitalTypeCode(
         new CapitalTypeCodeAdaptee("UNISSUED", 7, "Contingent capital."));
     WITHDRAWN = new CapitalTypeCode(
         new CapitalTypeCodeAdaptee("WITHDRAWN", 8, " Withdrawn capital."));
     AUTHORISED = new CapitalTypeCode(
         new CapitalTypeCodeAdaptee("AUTHORISED", 9, "Authorised capital."));
     IN_CIRCULATION = new CapitalTypeCode(
         new CapitalTypeCodeAdaptee("IN_CIRCULATION", 10, "In circulation."));
     ISSUED = new CapitalTypeCode(
         new CapitalTypeCodeAdaptee("ISSUED", 11, "Issued capital."));
     ISSUED_RESERVE_CAPITAL = new CapitalTypeCode(
         new CapitalTypeCodeAdaptee("ISSUED_RESERVE_CAPITAL", 12, "Issued reserve capital."));
 }
 public bool Equals(CapitalTypeCode code)
 {
     if (code == null || code.InternalObject == null || this.InternalObject == null)
     {
         return(false);
     }
     return(this.InternalObject.Equals(code.InternalObject));
 }
        public override bool Equals(object obj)
        {
            CapitalTypeCode code = obj as CapitalTypeCode;

            return(this.Equals(code));
        }