senecm4_TextUtil/TextUtil/Validator.cs
using System;
using TextUtil;
namespace TextUtil
{
    public class Validator
    {
        /// <summary>
        /// Validates input type against expected input
        /// </summary>
        /// <param name="userInputInt">The variable containing collected user input</param>
        /// <param name="validMenuInput">The while loop conditional boolean</param>
        /// <returns>true if input is valid, -1 if not</returns>
        public int validateINT(int userInputInt, bool validMenuInput)
        {
            try
            {
                userInputInt = Convert.ToInt32(Console.ReadLine());
                validMenuInput = true;
                return userInputInt;
            }
            catch (System.Exception) // may have to specifiy specific error in future
            {
                Writers.Error.WriteNL("Input Failure!");
                userInputInt = -1;
                return -1;
            }
        }

        public string validateSTRING(string userInputString, bool validMenuInput)
        {
            try
            {
                userInputString = Convert.ToString(Console.ReadLine());
                validMenuInput = true;
                return userInputString;
            }
            catch (System.Exception)
            {
                Writers.Error.WriteNL("Input Failure!");
                userInputString = null;
                return null;
            }
        }
    }

    public static class Validators
    {
        public static Validator Validator = new Validator();
    }
}