System.Net.FtpMethodInfo.GetMethodInfo C# (CSharp) Method

GetMethodInfo() static private method

static private GetMethodInfo ( string method ) : FtpMethodInfo
method string
return FtpMethodInfo
        internal static FtpMethodInfo GetMethodInfo(string method)
        {
            method = method.ToUpper(CultureInfo.InvariantCulture);
            foreach (FtpMethodInfo methodInfo in s_knownMethodInfo)
                if (method == methodInfo.Method)
                    return methodInfo;
            // We don't support generic methods
            throw new ArgumentException(SR.net_ftp_unsupported_method, nameof(method));
        }