Created
March 18, 2025 17:10
-
-
Save dontpaniclabsgists/c0078107e8d7099dd46f7ccba2211d11 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PhoneNumber | |
{ | |
[XmlIgnore] | |
public string AreaCode { get; set; } | |
[XmlIgnore] | |
public string Number { get; set; } | |
[XmlText] | |
public string FormattedNumber | |
{ | |
get { return $"{AreaCode}-{Number}"; } | |
set {} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment