title: String Type in IIOP.NET?
body: <p>I'm new to IIOP.Net. I have built a simple Adder Corba App using IIOP.Net ( with much help from StackOverFlow community, thanks again).</p>
  
  <p>Now, I'm having a problem with String type in IIOP.Net</p>
  
  <p>I have a remote method that return a String:</p>
  
  <pre><code>public String myMethod()
  {
      return "This is a String, right?";
  }
  </code></pre>
  
  <p>The CLStoIDL generate for me a A.idl file ( where A is my remote object). Then I use IDLtoCLS so compile to .dll file for my C# client.</p>
  
  <p>The problem is my Visual studio seems not to see the class in .dll file. Its apparently that my .dll file has some errors. Then I changed the return type of my method to int,</p>
  
  <pre><code>public int myMethod()
  {
      return 12345678;
  }
  </code></pre>
  
  <p>This time, the .Net client can call the method and get the int value. So I think I have to do much with String type. Look at their doc. I see that, I have to use AttributeUseage, like this:</p>
  
  <pre><code>[AttributeUsage(AttributeTargets.ReturnValue)]
      public sealed class StringValueAttribute: Attribute, IidlAttirebute
  {
  }
  </code></pre>
  
  <p>But I have no idea how to implement that.</p>
  
  <p>Actually, I have a solution for that is to change the return type of my method to Object, but then, in client, I have to cast it to String type.</p>
  
  <p>Could someone please give me an advice to handle String type?
  Thank you.</p>