示例#1
0
        public sealed override MethodInfo GetDeclaredMethod(String name)
        {
            if (ReflectionTrace.Enabled)
            {
                ReflectionTrace.TypeInfo_GetDeclaredMethod(this, name);
            }

            if (name == null)
            {
                throw new ArgumentNullException("name");
            }

            TypeInfoCachedData cachedData = this.TypeInfoCachedData;

            return(cachedData.GetDeclaredMethod(name));
        }
        public sealed override MethodInfo GetDeclaredMethod(String name)
        {
#if ENABLE_REFLECTION_TRACE
            if (ReflectionTrace.Enabled)
            {
                ReflectionTrace.TypeInfo_GetDeclaredMethod(this, name);
            }
#endif

            if (name == null)
            {
                throw new ArgumentNullException(nameof(name));
            }

            TypeInfoCachedData cachedData = this.TypeInfoCachedData;
            return(cachedData.GetDeclaredMethod(name));
        }