RegexConverter public class RegexConverter : JsonConverter Converts a Regex to and from JSON and BSON. Documentation Code public RegexConverter()