Click here to Skip to main content
15,887,477 members
Home / Discussions / C#
   

C#

 
GeneralRe: installer conditions: ((CHECKBOXA1 And CHECKBOXA2) And Not (CHECKBOXA3)) is not working Pin
ich_bins24-Sep-03 1:28
ich_bins24-Sep-03 1:28 
GeneralRe: installer conditions: ((CHECKBOXA1 And CHECKBOXA2) And Not (CHECKBOXA3)) is not working Pin
Chris Richner24-Sep-03 2:25
Chris Richner24-Sep-03 2:25 
GeneralRelative file path Pin
Stephane David23-Sep-03 21:08
Stephane David23-Sep-03 21:08 
GeneralRe: Relative file path Pin
Jim Stewart24-Sep-03 5:40
Jim Stewart24-Sep-03 5:40 
GeneralBinaryWriter/BinaryReader Portability Pin
Andrew Shapira23-Sep-03 18:34
Andrew Shapira23-Sep-03 18:34 
GeneralRe: BinaryWriter/BinaryReader Portability Pin
Julian Bucknall [MSFT]24-Sep-03 6:25
Julian Bucknall [MSFT]24-Sep-03 6:25 
GeneralRe: BinaryWriter/BinaryReader Portability Pin
Andrew Shapira24-Sep-03 11:11
Andrew Shapira24-Sep-03 11:11 
GeneralRe: BinaryWriter/BinaryReader Portability Pin
Julian Bucknall [MSFT]24-Sep-03 14:46
Julian Bucknall [MSFT]24-Sep-03 14:46 
Andrew

I'm sorry, I see I wasn't being explicit enough <g>. Any stream written with any existing BinaryWriter can be read by any existing BinaryReader. I can even confirm that fact with Whidbey's BinaryReader and Writer (that is, with .NET Framework 2.0). If it didn't then it's a bug. (So the 3D matrix of 1.0, 1.1, 2.0 frameworks, for the two layers of writers and reader combinations has ticks in every cell).

That's the statement about Microsoft's .NET Framework. I know nothing about the Mono project (apart from what it is, of course). I have no idea whether their BinaryReader would always work with a stream createed with BinaryWriter. Similarly I don't know if a stream written by Mono's BinaryWriter would be readable with MS's BinaryReader. However, I would *guess* that the Mono people would have taken endianness into account when they were writing their reader and writer.

Now, as to the future (beyond Whidbey): it would make sense for the .NET Framework team to make sure that BinaryReader and BinaryWriter can continue to work as before. Why? Because the ResourceManager uses BinaryReaders and Writers internally. And that would be bad if Visual Studio .NET X (for X>2) couldn't read resource files from existing projects.

Also, the format used by BinaryWriter is very, very simple and easily reverse engineered. There's no wierdo enums or class names being put in there or stuff like that. An int is written out as 4 bytes, a double as 8, etc, etc.

So, although neither I nor anyone else can really tell you what would happen five years down the road, I wouldn't worry about it.


Cheers, Julian
Program Manager, C#

This posting is provided "AS IS" with no warranties, and confers no rights.
GeneralRe: BinaryWriter/BinaryReader Portability Pin
Andrew Shapira24-Sep-03 15:00
Andrew Shapira24-Sep-03 15:00 
GeneralRe: BinaryWriter/BinaryReader Portability Pin
Arun Bhalla24-Sep-03 7:39
Arun Bhalla24-Sep-03 7:39 
GeneralRe: BinaryWriter/BinaryReader Portability Pin
Andrew Shapira24-Sep-03 10:19
Andrew Shapira24-Sep-03 10:19 
GeneralRe: BinaryWriter/BinaryReader Portability Pin
Arun Bhalla24-Sep-03 10:30
Arun Bhalla24-Sep-03 10:30 
GeneralRe: BinaryWriter/BinaryReader Portability Pin
Andrew Shapira24-Sep-03 11:12
Andrew Shapira24-Sep-03 11:12 
Generalsurvey on books Pin
nevhile.net23-Sep-03 14:52
nevhile.net23-Sep-03 14:52 
GeneralRe: survey on books Pin
David Stone23-Sep-03 16:07
sitebuilderDavid Stone23-Sep-03 16:07 
GeneralRe: survey on books Pin
James T. Johnson23-Sep-03 17:17
James T. Johnson23-Sep-03 17:17 
GeneralRe: survey on books Pin
Andrew Shapira23-Sep-03 18:40
Andrew Shapira23-Sep-03 18:40 
GeneralRe: survey on books Pin
David Stone23-Sep-03 19:16
sitebuilderDavid Stone23-Sep-03 19:16 
GeneralRe: survey on books Pin
Bog26-Sep-03 8:42
Bog26-Sep-03 8:42 
GeneralC# Crypto Interop with WIN32 Pin
cory_baker23-Sep-03 12:09
cory_baker23-Sep-03 12:09 
QuestionHow-To Create Dynamic Webservice Detection? Pin
DudleyDoorite23-Sep-03 11:20
DudleyDoorite23-Sep-03 11:20 
QuestionC# Question: static int amountopen = (0 - 500); ??? Pin
Chua Wen Ching23-Sep-03 10:59
Chua Wen Ching23-Sep-03 10:59 
AnswerRe: C# Question: static int amountopen = (0 - 500); ??? Pin
Alvaro Mendez23-Sep-03 11:13
Alvaro Mendez23-Sep-03 11:13 
GeneralRe: C# Question: static int amountopen = (0 - 500); ??? Pin
Chua Wen Ching23-Sep-03 11:21
Chua Wen Ching23-Sep-03 11:21 
GeneralRe: C# Question: static int amountopen = (0 - 500); ??? Pin
Alvaro Mendez23-Sep-03 11:48
Alvaro Mendez23-Sep-03 11:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.