/// <inheritdoc cref="IMethodProvider.GetMethods"/> public IEnumerable <IMethodAccessor> GetMethods(object source) { return(typeMethodProvider .GetMethods(source) .Where(InvariantMethodFilter) .Select(methodAccessorFactory.Create)); }
/// <inheritdoc cref="ITypeMethodProvider.GetMethods"/> public IEnumerable <MethodInfo> GetMethods(object source) { var key = objectCache.GetKey(source); var result = objectCache.GetOrAdd(key, () => decorated.GetMethods(source)); return(result as IEnumerable <MethodInfo>); }