dotnet-logo.png

Detox for .NET

Suitable for C# and Unity development using .NET Standard 2.0

 

Quick Start Guide

Before starting, download the latest Detox data file.


The downloaded package contains two versions of the Detox library:

  1. Standalone DLL with embedded third-party dependencies (recommended)

  2. Individual library that requires dependencies to be included separately.

The latter version is provided for users who require greater control of third-party dependencies. Detox for .NET uses the following dependencies:

  • Newtonsoft.Json 13.0

  • MathNet.Numerics 4.15

Sample C# Code

using Detox;
// ...

// Load Detox data file as a string - see download page of data file for more examples
string detoxData = System.IO.File.ReadAllText(@".../Detox_Data.json");

// Initialize Moderator and we're good to go!
Moderator moderator = new Moderator(detoxData);
string message = "Welcome to Detox!";
bool results = moderator.IsToxic(message);

For more details, see our Overview documentation guide.