public static void Main(string[] args) { FindType ft = new FindType(); try { SetOptions(args, ft); ft.Search(); } catch(SecurityException) { Console.WriteLine("This sample has failed to run due to a security limitation!"); Console.WriteLine("Try running the sample from a local drive or using CasPol.exe to turn off security."); } catch { PrintUsage(); } }
public static void Main(string[] args) { FindType ft = new FindType(); try { SetOptions(args, ft); ft.Search(); } catch (SecurityException) { Console.WriteLine("This sample has failed to run due to a security limitation!"); Console.WriteLine("Try running the sample from a local drive or using CasPol.exe to turn off security."); } catch { PrintUsage(); } }