C# Array or Dictionary?
Posted
by Valentin
on Stack Overflow
See other posts from Stack Overflow
or by Valentin
Published on 2010-03-15T17:07:15Z
Indexed on
2010/03/15
17:09 UTC
Read the original article
Hit count: 254
Hi.
I wanted to know is C# array has a constant access speed?
I need to store 1000 items in static array, that will be initialized during server startup. This array will be used readonly,
so there will be no changes to array.
Should I use a simple C# array (new MyClass[]) or Dictionary instead.
I am really new to C# and trying to understand how C# arrays access works.
Can they be compared to c++ arrays by speed?
© Stack Overflow or respective owner