Can you store multiple data types in System.Array?

Answer Posted / naveen

Bit tricky answer. Convert into system.object and store
(using boxing)like this you are able to store differnt
types which is not recommended

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between abstract and virtual?

659


How many types of constructors are there in c#?

642


Why we use dll in c#?

711


What is dll in c#?

693


What do you use c# for?

690


How do you serialize an object?

707


What are the methods in c#?

701


Difference between abstract classes and interfaces

734


What is difference between ilist and list?

668


Can a static class have a constructor c#?

679


What is xml serialization and deserialization in c#?

672


what is IComparable

765


How do I unload an assembly?

716


Describe ways of cleaning up objects in c#.

682


What is Delegate and what is it used for ?

770