Exemple #1
0
  ///<summary>The entry point for the application.</summary>
  ///<param name="argv">A list of command line arguments</param>
  public static void Main
  (
   String[] argv
  )
  {
   Boolean             booleanParseCommandLineArguments  =  false;
   string              exceptionMessage                  =  null;     
   UtilityXmlArgument  utilityXmlArgument                =  null;
   
   utilityXmlArgument = new UtilityXmlArgument();
   
   booleanParseCommandLineArguments  =  UtilityParseCommandLineArgument.ParseCommandLineArguments
   ( 
    argv, 
    utilityXmlArgument
   );

   if ( booleanParseCommandLineArguments == false )
   {
    // error encountered in arguments. Display usage message
    System.Console.Write
    (
     UtilityParseCommandLineArgument.CommandLineArgumentsUsage( typeof ( UtilityXmlArgument ) )
    );
    return;
   }//if ( booleanParseCommandLineArguments  == false )

   Stub
   (
    ref utilityXmlArgument,
    ref exceptionMessage
   );
   
  }//static void Main( String[] argv ) 
Exemple #2
0
  }//static void Main( String[] argv ) 

  ///<summary>Stub.</summary>
  public static void Stub
  (
   ref UtilityXmlArgument  utilityXmlArgument,
   ref string              exceptionMessage
  )
  {
   XmlSchemaValidation
   (
    ref utilityXmlArgument.filenameXmlDocument,
    ref utilityXmlArgument.filenameSchema,
    ref exceptionMessage
   );
  }