[Mono-list] Custom attributes setting return type

Mark Derricutt mark@talios.com
Mon, 14 Apr 2003 21:29:57 +1200


Hi, just compiling some Webservices code from work under mono and getting
some warnings:

manager/BulletinServerProxy.cs(55) warning CS-0024: .NET SDK 1.0 does \
  not permit to set custom attributes to the return type of a method

The code in question is:

  [System.Web.Services.Protocols.SoapRpcMethodAttribute("",
    RequestNamespace="urn:bulletinwireless.com/appconnect/1.0",
    ResponseNamespace="urn:bulletinwireless.com/appconnect/1.0")]
  [return: System.Xml.Serialization.SoapElementAttribute("receiveStatusReturn")]

  public MessageStatus[] receiveStatus(string application, int environment) 
  {
    object[] results = this.Invoke("receiveStatus", new object[] {
    return ((MessageStatus[])(results[0]));
  }


I've just inherited this code and new to .NET/C# so not sure if this is
correct, however the code compiles fine under Visual Studio.NET.

Mark