2using System.Collections.Generic;
 
    3using System.Runtime.Serialization;
 
   14        [DataMember(Order = 20)]
 
   15        public double rate { 
get; 
set; }
 
   18        [DataMember(Order = 21)]
 
   19        public List<FeeReference> 
premiums { 
get; 
set; } = 
new List<FeeReference>();
 
   22        [DataMember(Order = 22)]
 
   23        public List<FeeReference> 
losses { 
get; 
set; } = 
new List<FeeReference>();
 
   26        [DataMember(Order = 23)]
 
   27        public List<FeeReference> 
fees { 
get; 
set; } = 
new List<FeeReference>();
 
   29        #region Equality Overrides 
   33            base.Equals((
Fee)other) &&
 
   34            rate.Equals(other.rate) &&
 
   40        public override bool Equals(
object obj) =>
 
   46            int hash = base.GetHashCode();
 
   50            hash += 23 * 
rate.GetHashCode();
 
 
   53        #endregion Equality Overrides 
 
Abstract representation of a fee. This resource type cannot be instantiated instead derived resource ...
 
static bool ReferencesEquivalent(List< FeeReference > first, List< FeeReference > second)
Used to determine if two lists of fee references are equivalent while ignoring the order in which fee...
 
static int HashReferences(IEnumerable< FeeReference > references)
Get the HashCode for a collection of Fee References.
 
The Profit Commission applies a fee that is the sum of the premium sources minus the sum of loss and ...
 
List< FeeReference > premiums
The premium sources.
 
override int GetHashCode()
 
List< FeeReference > fees
The fee sources.
 
override bool Equals(object obj)
 
List< FeeReference > losses
The loss sources.
 
bool Equals(ProfitCommission other)