Example #1
0
        /// <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);
        }
Example #2
0
 /// <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;
 }
Example #3
0
 /// <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);
 }