This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| **Convert String to Stream** | |
| To convert a C# String to a MemoryStream object, use the GetBytes Encoding method to create a byte array, then pass that to the MemoryStream constructor: | |
| - byte[] byteArray = Encoding.ASCII.GetBytes( test ); | |
| - MemoryStream stream = new MemoryStream( byteArray ); | |
| **Convert Stream to String** | |
| To convert a Stream object (or any of its derived streams) to a C# String, create a StreamReader object, then call the ReadToEnd method: | |
| - StreamReader reader = new StreamReader( stream ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## by rafaelsc | |
| ## This is a directory/file filter for WinMerge | |
| ## This filter Ignore Visual Studio temporary files, build results, and files generated by popular Visual Studio add-ons | |
| name: Visual Studio Files | |
| desc: Ignore Visual Studio temporary files, build results, and files generated by popular Visual Studio add-ons. | |
| ## This is an inclusive (loose) filter | |
| ## (it lets through everything not specified) | |
| def: include |