Exemplo n.º 1
0
 internal CurrencyCode(CurrencyCodeAdaptee Instance)
 {
     if (Instance.Value != null)
     {
         this.InternalObject = Instance;
     }
 }
Exemplo n.º 2
0
        public override bool Equals(System.Object obj)
        {
            // If parameter is null return false.
            if (obj == null)
            {
                return(false);
            }

            // If parameter cannot be cast to CurrencyCodeAdaptee return false.
            CurrencyCodeAdaptee p = obj as CurrencyCodeAdaptee;

            if ((System.Object)p == null)
            {
                return(false);
            }

            // Return true if the fields match:
            return((Value == p.Value) && (Label == p.Label));
        }