Bandwidth.Standard/Voice/Models/CallbackMethodEnum.cs
/// <summary>
/// Converts a string value into CallbackMethodEnum value
/// </summary>
/// <param name="value">The string value to parse</param>
/// <returns>The parsed CallbackMethodEnum value</returns>
Converts a string value into CallbackMethodEnum value
Converts a string value into CallbackMethodEnum value
public static CallbackMethodEnum ParseString(string value)
        {
            int index = stringValues.IndexOf(value);
            if(index < 0)
                throw new InvalidCastException(string.Format("Unable to cast value: {0} to type CallbackMethodEnum", value));
            return (CallbackMethodEnum) index;
        }
public static CallbackMethodEnum ParseString ( string value ) { int index = stringValues . IndexOf ( value ) ; if ( index < 0 ) throw new InvalidCastException ( string . Format ( " " , value ) ) ; return ( CallbackMethodEnum ) index ; }
Converts a string value into CallbackMethodEnum value
Converts a string value into CallbackMethodEnum value
The parsed CallbackMethodEnum value
The parsed CallbackMethodEnum value
value
string
The string value to parse
The string value to parse