Question

I know this may sound crazy, but I swear that on two separate ocassions via intellisense I've seen an overload for the DataView constructor that took in a DataTable and either Predicate or Func, I don't remember what T was, either DataRow or DataRowView. But now I can't find it. It also took in another parameter, I want to say it was a Comparison, but I'm less about that fact. The problem is, I can no longer find that overload.

Looking at the definition, I see that there is only 3 constructors for DataView. I specifically remember that in intellisense for this "disappearing constructor" said "4 of 4".

Can someone please help me solve this mystery? Please tell me that I'm not delusional and did in fact see this constructor (or something like it). Maybe it wasn't actually a constructor and was an extension method?

Was it helpful?

Solution

There are five constructors, but two of them (including one taking a predicate and a comparison) are internal to the System.Data assembly. I don't know why Intellisense would show that to you though...

OTHER TIPS

Sorry - unfortunately there are only 3 public constructors:

http://msdn.microsoft.com/en-us/library/system.data.dataview.dataview.aspx

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top