var - always use the explicit type on the left side; use implicit new() on the right side// correct MemberInfo member = GetMember<NoAttributes>(nameof(NoAttributes.Value)); ReflectionTestClass target = new(); // wrong var member = GetMember<NoAttributes>(nameof(NoAttributes.Value));