Esempio n. 1
0
 /// <summary>
 ///     Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 ///     A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         return(((CodeSystem != null ? CodeSystem.GetHashCode() : 0) * 397) ^ (Code != null ? Code.GetHashCode() : 0));
     }
 }
Esempio n. 2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="CodedConcept" /> class.
 /// </summary>
 /// <param name="codeSystem">The code system.</param>
 /// <param name="code">The code.</param>
 /// <param name="name">The name.</param>
 public CodedConcept(CodeSystem codeSystem, string code, string name)
 {
     CodeSystem = codeSystem;
     Code       = code;
     Name       = name;
 }