System.Dynamic.CallInfo.GetHashCode C# (CSharp) Method

GetHashCode() public method

Serves as a hash function for the current CallInfo.
public GetHashCode ( ) : int
return int
        public override int GetHashCode()
        {
            return ArgumentCount ^ ArgumentNames.ListHashCode();
        }

Usage Example

Esempio n. 1
0
        internal JsInvokeMemberBinder CreateInvokeMemberBinder(object name, CallInfo callInfo)
        {
            // Stolen from SymPL who stole it from the DLR
            var key = 0x28000000 ^ name.GetHashCode() ^ callInfo.GetHashCode();

            if (_invokeMemberBinder.ContainsKey(key))
                return _invokeMemberBinder[key];

            return _invokeMemberBinder[key] = new JsInvokeMemberBinder(name, callInfo, this);
        }