By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,042 Members | 1,047 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,042 IT Pros & Developers. It's quick & easy.

A quick question for IL and C#

P: n/a
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
Jun 16 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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" <Br*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
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

Jun 16 '06 #2

P: n/a
The old answer that I always give. Download the C# specification and read.
http://msdn.microsoft.com/netframewo...r/default.aspx

chanmm

"Brian" <Br*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
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

Jun 16 '06 #3

P: n/a
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" <dr*******************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
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" <Br*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
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


Jun 16 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.