home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples.exe / Deployment / 5_Versioned / VerClient.cs < prev   
Encoding:
Text File  |  2000-06-23  |  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.