System.Net.NetworkInformation.LinuxNetworkInterface.GetSpeed C# (CSharp) Method

GetSpeed() private static method

private static GetSpeed ( string name ) : long?
name string
return long?
        private static long? GetSpeed(string name)
        {
            try
            {
                string path = Path.Combine(NetworkFiles.SysClassNetFolder, name, NetworkFiles.SpeedFileName);
                return StringParsingHelpers.ParseRawLongFile(path);
            }
            catch (Exception) // Ignore any problems accessing or parsing the file.
            {
                return null;
            }
        }