Example #1
0
        public static string ObjectHash(object obj)
        {
            DObject dobj = obj as DObject;

            if (dobj == null)
            {
                PhpException.Throw(PhpError.Warning, LibResources.GetString("unexpected_arg_given", 1, DObject.PhpTypeName, PhpVariable.GetTypeName(obj).ToLower()));
                return(null);
            }

            return(dobj.GetHashCode().ToString("x32"));
        }