Skip to content
View DrewQuick's full-sized avatar
Block or Report

Block or report DrewQuick

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Cache Eval Cache Eval
    1
    // Implementation
    2
    private const int DEFAULT_RETENTION = 60;
    3
    
    
    4
    public static T Eval<T>(this IMemoryCache cache, string key, Func<T> expression)
    5
        => Eval(cache, key, DEFAULT_RETENTION, expression);
  2. Dynamic Invocation Dynamic Invocation
    1
    public static void ExecuteMethod(string MethodName, Type ClassType = null)
    2
    {
    3
        if (string.IsNullOrWhiteSpace(MethodName))
    4
            throw new Exception("First argument must contain the target method name.");
    5