src/Mimp.SeeSharper.Reflection/MethodInfoExtensions.cs
/// <summary>
/// Return the reflected type and all types from method.
/// </summary>
/// <param name="method"></param>
/// <returns></returns>
Return the reflected type and all types from method.
Return the reflected type and all types from method .
public static IEnumerable<Type> GetInstanceMethodTypes(this MethodInfo method)
        {
            if (method is null)
                throw new ArgumentNullException(nameof(method));
            yield return method.ReflectedType!;
            foreach (var t in method.GetMethodTypes())
                yield return t;
        }
public static IEnumerable < Type > GetInstanceMethodTypes ( this MethodInfo method ) { if ( method is null ) throw new ArgumentNullException ( nameof ( method ) ) ; yield return method . ReflectedType ! ; foreach ( var t in method . GetMethodTypes ( ) ) yield return t ; }
Return the reflected type and all types from method.
Return the reflected type and all types from method .
None
MethodInfo
this
method
None