473,509 Members | 2,857 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A quick question for IL and C#

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
3 1707
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
7344
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7412
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7069
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5652
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4730
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3216
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
441
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.