ILRuntimeParameterInfo.cs 845 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Reflection;
  6. using System.Globalization;
  7. using ILRuntime.CLR.TypeSystem;
  8. namespace ILRuntime.Reflection
  9. {
  10. public class ILRuntimeParameterInfo : ParameterInfo
  11. {
  12. IType type;
  13. MethodBase method;
  14. Mono.Cecil.ParameterDefinition definition;
  15. public ILRuntimeParameterInfo(Mono.Cecil.ParameterDefinition definition, IType type, MethodBase method)
  16. {
  17. this.type = type;
  18. this.method = method;
  19. this.MemberImpl = method;
  20. this.definition = definition;
  21. NameImpl = definition.Name;
  22. }
  23. public override Type ParameterType
  24. {
  25. get
  26. {
  27. return type.ReflectionType;
  28. }
  29. }
  30. }
  31. }