System.Dynamic.CallInfo.GetHashCode C# (CSharp) 메소드

GetHashCode() 공개 메소드

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

Usage Example

예제 #1
0
파일: Context.cs 프로젝트: dtdimi/IronJS
        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);
        }