How to convert String to byte Array in C#?

How to convert a string to a byte array in .NET (C#)?

Please also let me know whether encoding should be taken into consideration.

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories