A quick question for IL and C#

  • Thread starter Thread starter Brian
  • Start date Start date
B

Brian

A quick question here -

What can be achieved in IL which is not possible in C# ?
o Creation of an ArrayList
o Creation of a Dictionary
o Creation of a two dimensional array
o Creation of a non-zero based array

Please let me know what is the right answer. Many thanks.

Brian
 
I think someone is pulling your leg (or just doesn't know how to do the 4th
item, creating a non-zero based array).

1) ArrayList a = new ArrayList()
2) Dictionary<string, string> d = new Dictionary<string, string>()
3) int [,] foo = new int[10,10]
4) You can use Array.CreateInstance to create arrays without 0 bounds

Cheers,

Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung
 
Hi,

I think he is preparing himself for some test, this is like the third
question like this he posted today


--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


Greg Young said:
I think someone is pulling your leg (or just doesn't know how to do the 4th
item, creating a non-zero based array).

1) ArrayList a = new ArrayList()
2) Dictionary<string, string> d = new Dictionary<string, string>()
3) int [,] foo = new int[10,10]
4) You can use Array.CreateInstance to create arrays without 0 bounds

Cheers,

Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung

Brian said:
A quick question here -

What can be achieved in IL which is not possible in C# ?
o Creation of an ArrayList
o Creation of a Dictionary
o Creation of a two dimensional array
o Creation of a non-zero based array

Please let me know what is the right answer. Many thanks.

Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top