Skip to content

Instantly share code, notes, and snippets.

View SebiBasti's full-sized avatar

Sebastian Remm SebiBasti

View GitHub Profile
@SebiBasti
SebiBasti / Challenge3.cs
Created April 13, 2023 21:08
FactFinder Challenge
using System;
public class Class1 { // find a more descriptive class name
public static bool IsFormat(string str, string f) // rename f to format and rename to IsFormatValid
{
var allowedDict = new Dictionary<string, bool>() // use an Array instead of a Dictionary
{
{ "number",true},
{ "date",true},
{ "timespan",true}