Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MatchesExtension()

static bool System.ComponentModel.DataAnnotations.PhoneAttribute.MatchesExtension ( string potentialExtension)
inlinestaticprivate

Definition at line 81 of file PhoneAttribute.cs.

82 {
83 potentialExtension = potentialExtension.TrimStart();
84 if (potentialExtension.Length == 0)
85 {
86 return false;
87 }
88 string text = potentialExtension;
89 foreach (char c in text)
90 {
91 if (!char.IsDigit(c))
92 {
93 return false;
94 }
95 }
96 return true;
97 }

References System.text.

Referenced by System.ComponentModel.DataAnnotations.PhoneAttribute.RemoveExtension().