tags:

views:

22

answers:

2
DataSet dataset = new DataSet("PinkElephant");

Can anyone give me insight into what PinkElephant means in this context. I understand that I'm declaring a new DataSet Object, but what is PinkElephant? Is it simply the name of the DataSet?

Thanks

+1  A: 

Yes, from MSDN, it's the name

More specifically, that constructors doc

Chad
+1  A: 

It's the name given to the DataSet for use in creating an XML document's root tag. Without specifying it yourself, it'll create something up itself.

http://msdn.microsoft.com/en-us/library/7se64052.aspx

Capital G