R
Ratish
I have created a custom collection class by extending CollectionBase.
For Example.
[Serializable()]
Public Class SomeObject
{
int i;
string s;
}
[Serializable()]
Public Class SomeObjectCollection :
System.Collections.CollectionBase
{
public SomeObjectCollection ()
{}
public virtual void Add(SomeObject NewObject)
{
this.List.Add (NewObject);
}
public virtual void Remove(SomeObject oObject)
{
this.List.Remove(oObject);
}
public virtual SomeObject this[int index]
{
get
{
return (SomeObject) this.List[index];
}
set
{
this.List[index] = value;
}
}
}
One of my web methods returns SomeObjectCollection. But when i call
this web service from another application it returns an array of
SomeObject instead of SomeObjectCollection. Is there any way for the
client to get the SomeObjectCollection instead of an array? Thanks for
your help.
For Example.
[Serializable()]
Public Class SomeObject
{
int i;
string s;
}
[Serializable()]
Public Class SomeObjectCollection :
System.Collections.CollectionBase
{
public SomeObjectCollection ()
{}
public virtual void Add(SomeObject NewObject)
{
this.List.Add (NewObject);
}
public virtual void Remove(SomeObject oObject)
{
this.List.Remove(oObject);
}
public virtual SomeObject this[int index]
{
get
{
return (SomeObject) this.List[index];
}
set
{
this.List[index] = value;
}
}
}
One of my web methods returns SomeObjectCollection. But when i call
this web service from another application it returns an array of
SomeObject instead of SomeObjectCollection. Is there any way for the
client to get the SomeObjectCollection instead of an array? Thanks for
your help.