IronRuby.Builtins.RubyClass.CacheFailure C# (CSharp) Method

CacheFailure() private static method

private static CacheFailure ( Type type, string methodName, bool isStatic, int extensionVersion ) : void
type System.Type
methodName string
isStatic bool
extensionVersion int
return void
        private static void CacheFailure(Type/*!*/ type, string/*!*/ methodName, bool isStatic, int extensionVersion) {
            // store failure to the cache if the cache is not owned by another thread:
            var cache = Interlocked.Exchange(ref _clrFailedMemberLookupCache, null);
            if (cache != null) {
                cache[Key.Create(type, methodName, isStatic)] = extensionVersion;
                Interlocked.Exchange(ref _clrFailedMemberLookupCache, cache);
            }
        }