8 references to AddMethod
System.Private.CoreLib (8)
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.cs (1)
46
map.
AddMethod
(declaringType, ConstructorInfo.ConstructorName, parameterTypes, action);
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.Nullable.cs (7)
29
map.
AddMethod
(type, nameof(Nullable<int>.ToString), Array.Empty<Type>(),
36
map.
AddMethod
(type, nameof(Nullable<int>.Equals), new Type[] { typeof(object) },
48
map.
AddMethod
(type, nameof(Nullable<int>.GetHashCode), Array.Empty<Type>(),
62
map.
AddMethod
(type, "get_" + nameof(Nullable<int>.HasValue), Array.Empty<Type>(),
69
map.
AddMethod
(type, "get_" + nameof(Nullable<int>.Value), Array.Empty<Type>(),
78
map.
AddMethod
(type, nameof(Nullable<int>.GetValueOrDefault), Array.Empty<Type>(), NullableGetValueOrDefault);
91
map.
AddMethod
(type, nameof(Nullable<int>.GetValueOrDefault), new Type[] { theT },