IronRuby.Builtins.HashOps.GetDefaultValue C# (CSharp) Method

GetDefaultValue() private method

private GetDefaultValue ( CallSiteStorage storage, Hash self, object key ) : object
storage CallSiteStorage
self Hash
key object
return object
        public static object GetDefaultValue(CallSiteStorage<Func<CallSite, Proc, Hash, object, object>>/*!*/ storage, Hash/*!*/ self, object key) {
            if (self.DefaultProc != null) {
                var site = storage.GetCallSite("call", 2);
                return site.Target(site, self.DefaultProc, self, key);
            }
            return self.DefaultValue;
        }

Same methods

HashOps::GetDefaultValue ( RubyContext context, Hash self ) : object