コード例 #1
0
 public PrintSingleQuoteCharAchievement()
     : base("Console.WriteLine")
 {
     RequiredOverloads.Add(new TypeAndValueRequirementSet
     {
         Repeating    = true,
         Requirements = new List <TypeAndValueRequirement>
         {
             new TypeAndValueRequirement
             {
                 Type  = typeof(string),
                 Regex = "\\\'"
             }
         }
     });
 }
コード例 #2
0
 public PrintHorizontalTabAchievement()
     : base("Console.WriteLine")
 {
     RequiredOverloads.Add(new TypeAndValueRequirementSet
     {
         Repeating    = true,
         Requirements = new List <TypeAndValueRequirement>
         {
             new TypeAndValueRequirement
             {
                 Type  = typeof(string),
                 Regex = @"\t"
             }
         }
     });
 }
コード例 #3
0
 public HelloWorldAchievement()
     : base("Console.WriteLine")
 {
     RequiredOverloads.Add(new TypeAndValueRequirementSet
     {
         Repeating    = true,
         Requirements = new List <TypeAndValueRequirement>
         {
             new TypeAndValueRequirement
             {
                 Type         = typeof(string),
                 Regex        = @"hello world",
                 RegexOptions = RegexOptions.IgnoreCase
             },
         }
     });
 }
コード例 #4
0
 public PrintWithPlaceholdersAchievement()
     : base("Console.WriteLine")
 {
     RequiredOverloads.Add(new TypeAndValueRequirementSet
     {
         Repeating    = true,
         Requirements = new List <TypeAndValueRequirement>
         {
             new TypeAndValueRequirement
             {
                 Type         = typeof(string),
                 RegexOptions = RegexOptions.IgnorePatternWhitespace,
                 Regex        = @"\{ *\d *\}"
             },
         }
     });
 }
コード例 #5
0
 public FormatSpecifierAchievement()
     : base("Console.WriteLine")
 {
     RequiredOverloads.Add(new TypeAndValueRequirementSet
     {
         Repeating    = true,
         Requirements = new List <TypeAndValueRequirement>
         {
             new TypeAndValueRequirement
             {
                 Type         = typeof(string),
                 RegexOptions = RegexOptions.IgnorePatternWhitespace,
                 Regex        = @"\{ *\d *\: *[C,c,D,d,E,e,F,f,G,g,N,n,X,x]\d*\}"
             },
             new TypeAndValueRequirement
             {
                 Type = typeof(object)
             }
         }
     });
 }