コード例 #1
0
 /// <inheritdoc />
 public bool Equals(IDynamicEntity dynObj) => EntityWrapperEquality.EqualsWrapper(this, dynObj);
コード例 #2
0
 /// <summary>
 /// This is used by various equality comparison.
 /// Since we define two DynamicEntities to be equal when they host the same entity, this uses the Entity.HashCode
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode() => EntityWrapperEquality.GetHashCode(this);
コード例 #3
0
 public bool Equals(IEntityWrapper other) => EntityWrapperEquality.EqualsWrapper(this, other);
コード例 #4
0
 /// <inheritdoc />
 public override bool Equals(object obj) => EntityWrapperEquality.EqualsObj(this, obj);
コード例 #5
0
 public static bool operator !=(DynamicEntity d1, IEntityWrapper d2) => !EntityWrapperEquality.IsEqual(d1, d2);