标签:ram class eof attribute [] service att typeof upload
/// <summary> /// 获取所有的类型 /// </summary> public static class TypeHelper { public static IEnumerable<Type> GetKnownTypes(ICustomAttributeProvider provider) { return new[] { typeof(PKGRecord), typeof(List<PKGRecord>), typeof(UploadParam) }; } }
在服务接口中定义 [ServiceKnownType("GetKnownTypes", typeof(TypeHelper))] 标签
object 类型的传递,传入ServiceKnownType
标签:ram class eof attribute [] service att typeof upload
原文地址:http://www.cnblogs.com/caiyongxi/p/7238833.html