1 // ////////////////////////////////////////////////////////
2 // Lecture on the CORBA Component Model, summer term 2003
3 // Assignment 7, Stephan Brumme, 702544
4 //
5 // Implements the Reverse interface
6 //
7
8 namespace ReverseAPI
9 {
10 /// <summary>
11 /// Class that actually implements the Reverser interface
12 /// </summary>
13 public class ReverserImplementation : System.MarshalByRefObject, Reverser
14 {
15 public string reverse(string arg)
16 {
17 string strResult = "";
18
19 // iterate through the string and build a reverse copy
20 foreach (char letter in arg)
21 strResult = letter + strResult;
22
23 return strResult;
24 }
25 }
26 }
27