System.Yaml.YamlScalar.GetHashCodeCore C# (CSharp) Méthode

GetHashCodeCore() protected méthode

Returns the hash code. The returned value will be cached until YamlNode.OnChanged is called.
protected GetHashCodeCore ( ) : int
Résultat int
        protected override int GetHashCodeCore()
        {
            if ( NativeObjectAvailable ) {
                if ( NativeObject == null ) {
                    return 0;
                } else {
                    return NativeObject.GetHashCode();
                }
            } else {
                if ( ShorthandTag() == "!!str" ) {
                    return ( Value.GetHashCode() * 193 ) ^ Tag.GetHashCode();
                } else {
                    return TypeUtils.HashCodeByRef<YamlScalar>.GetHashCode(this);
                }
            }
        }