Converters/StringEnumConverter.cs

twilio-csharp · src/Twilio/Converters/StringEnumConverter.cs · csharp · MIT
voice, Voice / Speech

Converts between enum values and strings for JSON serialization in .NET applications.

// Source: https://github.com/twilio/twilio-csharp | License: MIT | Copyright 2023, Twilio, Inc. <https://www.twilio.com/help/contact>
// Provided via justclaw.it.com; keep this notice with the code.
using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
using System.Collections;
using Twilio.Types;

namespace Twilio.Converters
{
    /// <summary>
    /// Converts between enums and strings
    /// </summary>
    public class StringEnumConverter : JsonConverter
    {
        /// <summary>
        /// Writes value to a JsonWriter
        /// </summary>
        /// <param name="writer">JsonWriter to use</param>
        /// <param name="value">value to write</param>
        /// <param name="serializer">unused</param>
        public override void Wri

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key