private static MethodDefinition GetMethodWithName(AbstractWorkingSet workingSet, int timeout, string methodName) {
            MethodDefinition result = null;
            NamespaceDefinition globalScope;
            Assert.That(workingSet.TryObtainReadLock(timeout, out globalScope));
            try {
                result = globalScope.GetNamedChildren<MethodDefinition>("foo").FirstOrDefault();
                return result;
            } finally {
                workingSet.ReleaseReadLock();
            }

        }
        private static MethodDefinition GetMethodWithName(AbstractWorkingSet workingSet, int timeout, string methodName)
        {
            MethodDefinition    result = null;
            NamespaceDefinition globalScope;

            Assert.That(workingSet.TryObtainReadLock(timeout, out globalScope));
            try {
                result = globalScope.GetNamedChildren <MethodDefinition>("foo").FirstOrDefault();
                return(result);
            } finally {
                workingSet.ReleaseReadLock();
            }
        }