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 /// <summary>
10 /// Class that actually implements the Reverser interface
11 /// </summary>
12 public class ReverserImplementation : System.MarshalByRefObject, Reverser
{
13 public string reverse(string arg)
14 {
15 string strResult = "";
16
17 // iterate through the string and build a reverse copy
18 foreach (char letter in arg)
19 strResult = letter + strResult;
20
21 return strResult;
22 }
23 }
24 }
25