Esempio n. 1
0
 /// <summary>
 /// Returns a value indicating whether this primitive and the target argument can be
 /// compared. This should only return true if the underlying data types are equal.
 /// </summary>
 /// <param name="that">
 /// The object to compare with.
 /// </param>
 /// <returns>
 /// True if both underlying data types are equal by full name comparison. Case sensitive.
 /// </returns>
 public bool IsComparableTo(Primitive that)
 {
     return this.FullName != null && this.FullName.Equals(that.FullName);
 }
Esempio n. 2
0
 /// <inheritdoc />
 public bool Equals(Primitive that)
 {
     return object.ReferenceEquals(this, that) ||
         (that != null && this.IsComparableTo(that) && that.Value.Equals(this.Value));
 }