public PrintSingleQuoteCharAchievement() : base("Console.WriteLine") { RequiredOverloads.Add(new TypeAndValueRequirementSet { Repeating = true, Requirements = new List <TypeAndValueRequirement> { new TypeAndValueRequirement { Type = typeof(string), Regex = "\\\'" } } }); }
public PrintHorizontalTabAchievement() : base("Console.WriteLine") { RequiredOverloads.Add(new TypeAndValueRequirementSet { Repeating = true, Requirements = new List <TypeAndValueRequirement> { new TypeAndValueRequirement { Type = typeof(string), Regex = @"\t" } } }); }
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 }, } }); }
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 *\}" }, } }); }
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) } } }); }