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>();
 
   21        #region Equality Overrides 
   25            base.Equals((
Fee)other) &&
 
   26            rate.Equals(other.rate) &&
 
   30        public override bool Equals(
object obj) =>
 
   36            int hash = base.GetHashCode();
 
   38            hash += 23 * 
rate.GetHashCode();
 
 
   41        #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 Proportional Expense applies a fee that is the rate multiplied by the sum of premium sources.
 
bool Equals(ProportionalExpense other)
 
override int GetHashCode()
 
List< FeeReference > premiums
The premium sources.
 
override bool Equals(object obj)
 
double rate
The proportional rate.