MethodInfo.Internal.cs 503 B

12345678910111213141516
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. namespace System.Reflection
  5. {
  6. public abstract partial class MethodInfo : MethodBase
  7. {
  8. #if CORERT
  9. public // Needs to be public so that Reflection.Core can see it.
  10. #else
  11. internal
  12. #endif
  13. virtual int GenericParameterCount => GetGenericArguments().Length;
  14. }
  15. }