Types/PhoneNumber.cs

twilio-csharp · src/Twilio/Types/PhoneNumber.cs · csharp · MIT
voice, Voice / Speech

Represents a Twilio phone number endpoint with implicit string conversion.

// 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.
namespace Twilio.Types
{
    /// <summary>
    /// Phone number endpoint
    /// </summary>
    public class PhoneNumber : IEndpoint
    {
        private readonly string _number;

        /// <summary>
        /// Create a new PhoneNumber
        /// </summary>
        /// <param name="number">Phone number</param>
        public PhoneNumber(string number)
        {
            _number = number;
        }

        /// <summary>
        /// Add implicit constructor for PhoneNumber to make it assignable from string
        /// </summary>
        /// <param name="number">Phone number</param>
   

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

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

Get a free API key