mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
* wstest.cs: Added null check. * client/localhost/IncludeTestTest.cs: New test. * server/localhost/IncludeTest.asmx, server/localhost/Test1.asmx, server/localhost/Test2.asmx, server/localhost/TestBinding6.asmx. svn path=/trunk/mcs/; revision=23615
35 lines
717 B
Plaintext
35 lines
717 B
Plaintext
<%@ WebService Language="c#" Class="IncludeTest" %>
|
|
|
|
using System;
|
|
using System.Collections;
|
|
using System.Xml.Serialization;
|
|
using System.Web.Services;
|
|
using System.Web.Services.Protocols;
|
|
|
|
public class IncludeTest
|
|
{
|
|
[WebMethod]
|
|
[XmlInclude(typeof(ComplexThing))]
|
|
[SoapInclude(typeof(ComplexThing))]
|
|
public ArrayList foo()
|
|
{
|
|
ArrayList list = new ArrayList();
|
|
list.Add(new ComplexThing("abc", 1.1f));
|
|
list.Add(new ComplexThing("xyz", 2.0f));
|
|
return list;
|
|
}
|
|
}
|
|
|
|
public class ComplexThing
|
|
{
|
|
public ComplexThing() {}
|
|
|
|
public ComplexThing(string name, float val)
|
|
{
|
|
this.name = name;
|
|
this.val = val;
|
|
}
|
|
public string name;
|
|
public float val;
|
|
}
|