Saludos,
Espero me puedan ayudar con este temita,
Estoy creando un servico en Wcf, que contiene algunos metodos, y aqlgunos de
ellos me reciben un <T> es decir el etodo esa diselñado de la siguienete
manera
public List<T> EjecutarConsulta<T>(GeneralInfo oGeneralInfo, object
objecto)
{
Function myFuncion = BusquedaMetodo(oGeneralInfo);
string path = myFuncion.FUN_NAMESPACE.Trim();
string className = myFuncion.FUN_CLASS.Trim();
string sMethodo = myFuncion.FUN_NOMBRE.Trim();
object myInterface = Assembly.Load(path +
sAssembly).CreateInstance(path + "." + className);
return
(List<T>)myInterface.GetType().InvokeMember(myFuncion.FUN_NOMBRE.Trim(),
System.Reflection.BindingFlags.Default |
System.Reflection.BindingFlags.InvokeMethod, null, myInterface, new object[]
{ oGeneralInfo, objecto });
}
y realizo el contrato, en la interface
[OperationContract ]
List<T> EjecutarConsulta<T>(GeneralInfo oGeneralInfo, object objecto);
el problema al compilar, y quere ver el servicio me da error
Type 'System.Collections.Generic.List`1[T]' cannot be exported as a schema
type because it is an open generic type. You can only export a generic type
if all its generic parameter types are actual types.
la veradd busque informacion, perono logtro entender, alguien me podria
ayudar a definir un metodo q generico en Wcf
Gracias
att
Napo,,,
Leer las respuestas