Connecting Tech Pros Worldwide Help | Site Map

A quick question for IL and C#

Brian
Guest
 
Posts: n/a
#1: Jun 16 '06
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


Greg Young
Guest
 
Posts: n/a
#2: Jun 16 '06

re: A quick question for IL and C#


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" <BrianSu2002@hotmail.com> wrote in message
news:%23x4jqTOkGHA.4672@TK2MSFTNGP02.phx.gbl...[color=blue]
>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
>[/color]


chanmm
Guest
 
Posts: n/a
#3: Jun 16 '06

re: A quick question for IL and C#


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

chanmm

"Brian" <BrianSu2002@hotmail.com> wrote in message
news:%23x4jqTOkGHA.4672@TK2MSFTNGP02.phx.gbl...[color=blue]
>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
>[/color]


Ignacio Machin \( .NET/ C# MVP \)
Guest
 
Posts: n/a
#4: Jun 16 '06

re: A quick question for IL and C#


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" <druckdruckREMOVEgoose@hotmail.com> wrote in message
news:%23PX4jlOkGHA.4044@TK2MSFTNGP03.phx.gbl...[color=blue]
>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" <BrianSu2002@hotmail.com> wrote in message
> news:%23x4jqTOkGHA.4672@TK2MSFTNGP02.phx.gbl...[color=green]
>>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
>>[/color]
>
>[/color]


Closed Thread