home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / dotNETSDK / SETUP.EXE / netfxsd1.cab / Client_cs_24________.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Encoding:
Text File  |  2001-08-21  |  955 b   |  30 lines

  1. using System;
  2.  
  3. using org.Test;
  4.  
  5. // This "class" exists only to house the application's entry-point function
  6. class MainApp {
  7.     // Static method called "Main" is application's entry point function
  8.     public static void Main() {
  9.  
  10.         // Iterate over component's strings and dump them to the console 
  11.         Stringer myStringComp = new Stringer();
  12.         Reverser myReverseComp = new Reverser();
  13.         string[] StringsSet = new string[4];
  14.         string[] RevStringsSet = new string[4];
  15.         
  16.         Console.WriteLine("Strings from StringComponent");                
  17.         for (int index = 0; index < myStringComp.Count; index++) {
  18.             StringsSet[index] = myStringComp.GetString(index);
  19.             Console.WriteLine(StringsSet[index]);
  20.         }    
  21.  
  22.         RevStringsSet = myReverseComp.Invert(StringsSet);
  23.  
  24.         Console.WriteLine("\nReversed Array Strings");
  25.         for (int index = 0; index < RevStringsSet.Length; index++) {
  26.             Console.WriteLine(RevStringsSet[index]);
  27.         }    
  28.     }
  29. }
  30.