Esempio n. 1
0
        private void CheckType(string t)
        {
            if (t == null)
            {
                return;
            }
            int x;

            if (Int32.TryParse(t, out x))
            {
                Type = theType.aInt;
            }

            // string s = new string(t.Where(c => !char.IsPunctuation(c)).ToArray());

            else if (t.ToLower() == "false" || t.ToLower() == "no" || t.ToLower() == "true" || t.ToLower() == "yes")
            {
                Type = theType.aBool;
            }

            else
            {
                Type = theType.aString;
            }
        }
Esempio n. 2
0
 public Info(string question, theType t)
 {
     theAnswer = "";
     Question  = question;
     FilledIn  = false;
     Type      = t;
 }