hi everyone,
i am relativley new to C# (i have a bit of background in java and vb.net), and there is a keyword called Shared in vb.net that i have used in several of my classes in order to use a method or a function in my project.
is 'internal' in C# the equivalent?
thanks in advance for any responses
adam
Loading

Scott LysleRank #49 · 31K reputationPosted Mar 13, 2007, 8:44 PM EDT
Adam Grande23 reputationPosted Mar 13, 2007, 9:52 PM EDT
regards
adam
Adam Grande23 reputationPosted Mar 13, 2007, 10:01 PM EDT
cheers
adam
Scott LysleRank #49 · 31K reputationPosted Mar 14, 2007, 10:12 AM EDT
Instead of using an array; if you want a resizable (dynamic) array look at your options with the collections. If you replace your arrays with arraylists, for example, you will not have to contend with redimensioning the arrays as you add or remove items from that array (they are dynamic by definition).
By importing System.Collections into your project, you can access and control the collections. Depending upon what you want to do, you might also look at Hashtables, SortedLists, etc. With the ArrayList you have a dynamic array that does not require a key value; other collection types use key-value pairs.
Adam Grande23 reputationPosted Mar 14, 2007, 3:25 PM EDT
thanks for your feedback so far, i know its going to be of great help. i will definitely use the collections you suggested. i have dabbled in hashtables before, as well as dictionaries (of which i am a big fan... its basically the perfect list! :P) in vb.net, and i will start using the ArrayList from this point forward.
thanks very much for everything you have said so far
regards
adam