Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
GeneralRe: 2 not so # things Pin
Nick Parker11-Jul-03 18:30
protectorNick Parker11-Jul-03 18:30 
GeneralRe: 2 not so # things Pin
leppie11-Jul-03 18:45
leppie11-Jul-03 18:45 
GeneralRe: 2 not so # things Pin
Nick Parker12-Jul-03 5:26
protectorNick Parker12-Jul-03 5:26 
GeneralRe: 2 not so # things Pin
Heath Stewart11-Jul-03 18:31
protectorHeath Stewart11-Jul-03 18:31 
GeneralRe: 2 not so # things Pin
leppie11-Jul-03 19:29
leppie11-Jul-03 19:29 
GeneralRe: 2 not so # things Pin
Heath Stewart12-Jul-03 0:41
protectorHeath Stewart12-Jul-03 0:41 
GeneralRe: 2 not so # things Pin
James T. Johnson11-Jul-03 18:57
James T. Johnson11-Jul-03 18:57 
GeneralRe: 2 not so # things Pin
Heath Stewart11-Jul-03 18:21
protectorHeath Stewart11-Jul-03 18:21 
GeneralRe: 2 not so # things Pin
leppie11-Jul-03 18:29
leppie11-Jul-03 18:29 
GeneralOK, slap me silly and call me Susan - NOT Pin
leppie11-Jul-03 18:49
leppie11-Jul-03 18:49 
GeneralRe: 2 not so # things Pin
leppie11-Jul-03 19:40
leppie11-Jul-03 19:40 
GeneralRe: 2 not so # things Pin
Heath Stewart12-Jul-03 0:15
protectorHeath Stewart12-Jul-03 0:15 
GeneralRe: 2 not so # things Pin
leppie12-Jul-03 1:54
leppie12-Jul-03 1:54 
GeneralTooltips Pin
Nnamdi Onyeyiri11-Jul-03 12:25
Nnamdi Onyeyiri11-Jul-03 12:25 
GeneralRe: Tooltips Pin
Nick Parker11-Jul-03 18:33
protectorNick Parker11-Jul-03 18:33 
GeneralRe: Tooltips Pin
Nnamdi Onyeyiri11-Jul-03 23:27
Nnamdi Onyeyiri11-Jul-03 23:27 
GeneralServer Certificates Pin
Jeff Phillips11-Jul-03 8:36
Jeff Phillips11-Jul-03 8:36 
GeneralRe: Server Certificates Pin
Heath Stewart11-Jul-03 8:46
protectorHeath Stewart11-Jul-03 8:46 
GeneralCan't find namespace Pin
Shaun Becker11-Jul-03 5:38
Shaun Becker11-Jul-03 5:38 
GeneralRe: Can't find namespace Pin
Heath Stewart11-Jul-03 6:16
protectorHeath Stewart11-Jul-03 6:16 
GeneralRe: Can't find namespace Pin
Shaun Becker11-Jul-03 11:39
Shaun Becker11-Jul-03 11:39 
GeneralRe: Can't find namespace Pin
Heath Stewart11-Jul-03 12:10
protectorHeath Stewart11-Jul-03 12:10 
GeneralRe: Can't find namespace Pin
Anonymous12-Jul-03 1:06
Anonymous12-Jul-03 1:06 
GeneralProgram containing large struct arrays Pin
Mike_V11-Jul-03 4:59
Mike_V11-Jul-03 4:59 
For one program I am converting to C# from C++, there are many large struct arrays. The struct itself is made up of six or seven numerical values, but there are approx. 20,000 of them. A program will automatically generate the file, but I do not know how to store it. Originally, the program generated a large .cpp file, so, ideally, it would generate a .cs file. Unfortunately, C# does not appear to have a similar feature.

Some formats I have considered are:

1) Serialized array of the structs, either as an external file or as an embedded resource. This is far from ideal, because serialization stores the assembly, version, and type name from which it was created. For reasons that are hard to explain, storing this data will render the file unusable.

2) XML Serialization: this is out. For such a large file, it is a very verbose file format.

3) Reading/writing structs in C# (as in fread/fwrite), with the file as an embedded resource or as an external file. The code that I wrote to do this is probably not very efficient, and for 20,000 structs, efficiency is a big concern.

4) This may seem a little weird: data segments in IL. It might be possible to generate a .il file that contains a ".data" section which contains the raw data of an array of structs. Is this even possible?

Anyway, if anyone has any suggestions, questions, or comments on what to do, please let me know. There may be something that I am missing.

Thanks.

PS. It is very early in the morning for me. If I do not make any sense, that is why Wink | ;)
GeneralRe: Program containing large struct arrays Pin
Stephane Rodriguez.11-Jul-03 11:57
Stephane Rodriguez.11-Jul-03 11:57 

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.