public static CanCache ( this t ) : bool | ||
t | this | |
Результат | bool |
internal static ParameterInfo[] GetParametersCached(this MethodBase method) { ParameterInfo[] pis; lock (_ParamInfoCache) { if (!_ParamInfoCache.TryGetValue(method, out pis)) { pis = method.GetParameters(); Type t = method.DeclaringType; if (t != null && TypeUtils.CanCache(t)) { _ParamInfoCache[method] = pis; } } } return(pis); }
internal static ParameterInfo[] GetParametersCached(this MethodBase method) { ParameterInfo[] pis; CacheDict <MethodBase, ParameterInfo[]> pic = s_paramInfoCache; if (!pic.TryGetValue(method, out pis)) { pis = method.GetParameters(); Type t = method.DeclaringType; if (t != null && TypeUtils.CanCache(t)) { pic[method] = pis; } } return(pis); }