BrowserInfo Class

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

Super simple browser detection. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent. and https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent.

public class BrowserInfo
Inheritance:
System.Object → BrowserInfo

Constructors

BrowserInfo(String)

Properties

Browser Gets the browser name, e.g. "Firefox", "Chrome", "Safari" etc.
Desktop Gets a value indicating whether this is a desktop browser.
Engine Gets the rendering engine, e.g. "Gecko", "WebKit", "Presto", "Trident", "Bink" etc.
Mobile Gets a value indicating whether this is a mobile device.
Platform Gets the operating system platform, e.g. "Windows", "Linux", "Mac", "iOS"
Tablet Gets a value indicating whether this is a tablet.
WebView Gets a value indicating whether this is an embedded WebView.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.