DataSharp/Data/Types/Metadata.cs
/// <summary>
/// Computes the hash code for the types we support.
/// </summary>
/// <param name="o"></param>
/// <returns></returns>
Computes the hash code for the types we support.
Computes the hash code for the types we support .
public static int GetHashCode(object o)
        {
            switch (o)
            {
                case Array:
                case IDictionary<string, object>:
                case Metadata:
                case long:
                case double:
                case bool:
                case string:
                case null:
                    return o.GetHashCode();
                default:
                    throw new ArgumentException($"Do not support type ${o.GetType()}");
            }
        }
public static int GetHashCode ( object o ) { switch ( o ) { case Array : case IDictionary < string , object > : case Metadata : case long : case double : case bool : case string : case null : return o . GetHashCode ( ) ; default : throw new ArgumentException ( $" Do not support type $ { o . GetType ( ) } " ) ; } }
Computes the hash code for the types we support.
Computes the hash code for the types we support .
None
o
object
None