mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2026-04-06 14:53:47 +00:00
Initial commit
This commit is contained in:
parent
143e708681
commit
5d934d40d6
6 changed files with 52 additions and 6 deletions
|
|
@ -0,0 +1,14 @@
|
|||
using System.Diagnostics.CodeAnalysis; // [StringSyntax]
|
||||
|
||||
partial class Program
|
||||
{
|
||||
[StringSyntax(StringSyntaxAttribute.DateTimeFormat)]
|
||||
const string fullDateTime = "dddd, d MMMM yyyy";
|
||||
|
||||
[StringSyntax(StringSyntaxAttribute.Regex)]
|
||||
const string digitsOnlyText = @"^\d+$";
|
||||
|
||||
[StringSyntax(StringSyntaxAttribute.Regex)]
|
||||
const string commaSeparatorText =
|
||||
"(?:^|,)(?=[^\"]|(\")?)\"?((?(1)[^\"]*|[^,\"]*))\"?(?=,|$)";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue