using System; using System.Collections.Generic; using System.Text; using gr2lib.core; using gr2lib.core.apiversion; namespace gr2lib_UnitTest { class Program { static void Main(string[] args) { // Setup access to check loaded Granny2 API Version granny2apiversion _version = new granny2apiversion(); // Check if the Loaded API Version Matches if (!_version.apiversionsmatch) { // the loaded version does not match Console.WriteLine("Warning:\n" + "\t Loaded Granny2 DLL Version: " + _version.apiversion.Version + "\n" + "\t Expected Version: " + _version.expectedapiversion.Version); // return from void to exit application return; } else { // the loaded version matches Console.WriteLine("Loaded granny2.dll: " + _version.apiversion.Version); } // if we have arrived at this point, the loaded api version matches the what the library was built against } } }