RaouL_BennetH
20-11-2010, 20:54
Ciao a tutti :)
Mi trovo in questa situazione:
public class MyClass
{
public string SomeString { get; set; }
public string[] ArrayString {get; set; }
//devo scorrere un array e:
for(int i = 0; i < 30; i++)
{
var s = someMethod(x => x.ArrayString[i] == someValue[i]);
}
}
L'eccezione che ottengo è:
Impossibile eseguire il cast di oggetti di tipo 'System.Linq.Expressions.SimpleBinaryExpression' sul tipo 'System.Linq.Expressions.UnaryExpression
Grazie a tutti :)
RaouL.
Mi trovo in questa situazione:
public class MyClass
{
public string SomeString { get; set; }
public string[] ArrayString {get; set; }
//devo scorrere un array e:
for(int i = 0; i < 30; i++)
{
var s = someMethod(x => x.ArrayString[i] == someValue[i]);
}
}
L'eccezione che ottengo è:
Impossibile eseguire il cast di oggetti di tipo 'System.Linq.Expressions.SimpleBinaryExpression' sul tipo 'System.Linq.Expressions.UnaryExpression
Grazie a tutti :)
RaouL.