User2128776521 posted
from c in credentials
select c <= 0x7f ? (byte)c : (byte)'?')
It seems to me that code does not compile in C# at all, without a lot of work.
So, that makes it VERY hard to answer your question directly and accurately.
That said, the following links may help you along the way.
I am sorry that I cannot help more.
101 Linq Samples In Cs...
http://code.msdn.microsoft.com/101-LINQ-Samples-3fb9811b
101 Linq Samples In Vb...
http://msdn.microsoft.com/en-us/vstudio/bb688088.aspx
Free Online Code Converter...
http://www.developerfusion.com/tools/
HTH.
Thanks.
-- Mark Kamoski