We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3508b90 commit a12e2dfCopy full SHA for a12e2df
src/Twilio/Types/PhoneNumber.cs
@@ -16,6 +16,16 @@ public PhoneNumber(string number)
16
_number = number;
17
}
18
19
+ /// <summary>
20
+ /// Add implicit constructor for PhoneNumber to make it assignable from string
21
+ /// </summary>
22
+ /// <param name="number">Phone number</param>
23
+ /// <returns></returns>
24
+ public static implicit operator PhoneNumber(string number)
25
+ {
26
+ return new PhoneNumber(number);
27
+ }
28
+
29
/// <summary>
30
/// Convert to string
31
/// </summary>
0 commit comments