Table of Contents

Class UserAgentParser

Namespace
VpnHood.Net.Toolkit.Utils
Assembly
VpnHood.Net.Toolkit.dll

Provides the means to read the operating system from a browser's User-Agent.

public static class UserAgentParser
Inheritance
UserAgentParser
Inherited Members

Methods

GetOperatingSystem(string?)

Reads the operating system's name by a heuristic, with a version where it finds one.

public static string GetOperatingSystem(string? userAgent)

Parameters

userAgent string

The User-Agent, or null.

Returns

string

The name, such as Windows 7, or Unknown OS.