You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
709 B
30 lines
709 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Runtime.Serialization;
|
|
using System.Reflection;
|
|
|
|
namespace SiaSun.LMS.Model
|
|
{
|
|
[DataContract]
|
|
[KnownType("GetKnownType")]
|
|
public class ObjectList
|
|
{
|
|
//增加构造函数方便使用
|
|
public ObjectList(IList<object> requestObj)
|
|
{
|
|
RequestObject = requestObj;
|
|
}
|
|
[DataMember]
|
|
public IList<object> RequestObject;
|
|
|
|
private static Type[] GetKnownType()
|
|
{
|
|
//将自定义对象的程序集下的所有类型标记为KnownType。
|
|
return Assembly.Load("SiaSun.LMS.Model").GetTypes();
|
|
}
|
|
}
|
|
|
|
|
|
}
|