public sealed override EventInfo GetDeclaredEvent(String name) { if (ReflectionTrace.Enabled) { ReflectionTrace.TypeInfo_GetDeclaredEvent(this, name); } if (name == null) { throw new ArgumentNullException("name"); } TypeInfoCachedData cachedData = this.TypeInfoCachedData; return(cachedData.GetDeclaredEvent(name)); }
public sealed override EventInfo GetDeclaredEvent(String name) { #if ENABLE_REFLECTION_TRACE if (ReflectionTrace.Enabled) { ReflectionTrace.TypeInfo_GetDeclaredEvent(this, name); } #endif if (name == null) { throw new ArgumentNullException(nameof(name)); } TypeInfoCachedData cachedData = this.TypeInfoCachedData; return(cachedData.GetDeclaredEvent(name)); }