Click here to Skip to main content
15,905,875 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Program containing large struct arrays Pin
Mike_V11-Jul-03 13:08
Mike_V11-Jul-03 13:08 
GeneralRe: Program containing large struct arrays Pin
Stephane Rodriguez.11-Jul-03 21:49
Stephane Rodriguez.11-Jul-03 21:49 
GeneralRe: Program containing large struct arrays Pin
Mike_V11-Jul-03 13:34
Mike_V11-Jul-03 13:34 
GeneralWebBrowser control questions Pin
GriffonRL11-Jul-03 4:44
GriffonRL11-Jul-03 4:44 
GeneralRe: WebBrowser control questions Pin
Stephane Rodriguez.11-Jul-03 11:50
Stephane Rodriguez.11-Jul-03 11:50 
GeneralSetup Application Pin
kgoodrich11-Jul-03 4:24
kgoodrich11-Jul-03 4:24 
Generalforeach() problem Pin
Asim N.11-Jul-03 2:28
Asim N.11-Jul-03 2:28 
GeneralRe: foreach() problem Pin
Philip Fitzsimons11-Jul-03 2:46
Philip Fitzsimons11-Jul-03 2:46 
GeneralRe: foreach() problem Pin
Asim N.12-Jul-03 19:09
Asim N.12-Jul-03 19:09 
GeneralRe: foreach() problem Pin
CBoland11-Jul-03 4:02
CBoland11-Jul-03 4:02 
GeneralRe: foreach() problem Pin
Asim N.12-Jul-03 19:20
Asim N.12-Jul-03 19:20 
GeneralRe: foreach() problem Pin
Heath Stewart11-Jul-03 4:17
protectorHeath Stewart11-Jul-03 4:17 
GeneralRe: foreach() problem Pin
Asim N.12-Jul-03 19:14
Asim N.12-Jul-03 19:14 
GeneralRe: foreach() problem Pin
Heath Stewart12-Jul-03 19:48
protectorHeath Stewart12-Jul-03 19:48 
GeneralRe: foreach() problem Pin
Asim N.13-Jul-03 23:28
Asim N.13-Jul-03 23:28 
GeneralRe: foreach() problem Pin
Heath Stewart14-Jul-03 1:55
protectorHeath Stewart14-Jul-03 1:55 

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.