This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Linq; | |
using System; | |
using UAParser; | |
string uaString = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063"; | |
// get a parser with the embedded regex patterns | |
var uaParser = Parser.GetDefault(); | |
// get a parser using externally supplied yaml definitions | |
// var uaParser = Parser.FromYamlFile(pathToYamlFile); |