/// <summary> /// Determines whether the specified <see cref="object" />, is equal to this instance. /// </summary> /// <param name="value">The <see cref="object" /> to compare with this instance.</param> /// <returns> /// <c>true</c> if the specified <see cref="object" /> is equal to this instance; otherwise, <c>false</c>. /// </returns> public override bool Equals(object value) { if (ReferenceEquals(null, value)) { return(false); } var hashId = new ApiId(value); return(Value == hashId.Value); }
/// <summary> /// Initializes a new instance of the <see cref="ApiId"/> struct from another <see cref="ApiId" />. /// </summary> /// <param name="value">The <see cref="ApiId" /> value.</param> public ApiId(ApiId value) { _instance = new object(); Value = value.Value; }
/// <summary> /// Equals the specified identifier. /// </summary> /// <param name="value">The <see cref="ApiId" /> value.</param> /// <returns></returns> public bool Equals(ApiId value) { return(Value == value.Value); }