T
tshad
Given that a.Value is a string and dr is a DataRow
Just curious why this works:
var temp = Formats.Find(a => a.Value == (string)dr[0]);
And this doesn't
var temp = Formats.Find(a => a.Value == dr[0]);
The only difference is that I am not casting it.
If the 2nd one was a casting problem, I would expect an error - but I don't
get one. Temp is just = null.
Thanks,
Tom
Just curious why this works:
var temp = Formats.Find(a => a.Value == (string)dr[0]);
And this doesn't
var temp = Formats.Find(a => a.Value == dr[0]);
The only difference is that I am not casting it.
If the 2nd one was a casting problem, I would expect an error - but I don't
get one. Temp is just = null.
Thanks,
Tom