JaedenRuiner
Well-known member
- Joined
- Aug 13, 2007
- Messages
- 340
- Programming Experience
- 10+
in the Help, and on MSDN this is what is listed for Select()
But if you have ever used a TypedDataTable (and are using DataSetExtensions) you know that there are three other Select() methods
these two i pulled from refractor(even though they look nothing like that in the intellisense), but the third i had to transpose from intellisense because I can't find it any where:
Now, I've used some of the delegate functions in the past, that many of the Linq extension sets require, and they can be very helpful. But where is the documentation for these?
I expect they are a more advanced selection method from the datatable, so as to reduce the complexity of the 'filterExpression' that the other DataTable.Select() methods use, or perhaps for even those special moments where a "filterExpression" is useless for the criteria that determines selection. I really want to use something like this, (a delegate select back method) and I don't want to have to reinvent the wheel. But there is no documentation on these functions.
Example: What is the TResult in the third function? What's it For? Should not the TResult be the MyDataTableRow class? These are questions documentation would help with but I can't find anything anywhere on the dataset extensions for the TypedDataTable (or anything that looks remotely like what I see in intellisense).
Thanks
Jaeden "Sifo Dyas" al'raec Ruiner
Name Description
Select() Gets an array of all DataRow objects. (Inherited from DataTable.)
Select(String) Gets an array of all DataRow objects that match the filter criteria in order of primary key (or lacking one, order of addition.) (Inherited from DataTable.)
Select(String, String) Gets an array of all DataRow objects that match the filter criteria, in the specified sort order. (Inherited from DataTable.)
Select(String, String, DataViewRowState) Gets an array of all DataRow objects that match the filter in the order of the sort that match the specified state. (Inherited from DataTable.)
Top
But if you have ever used a TypedDataTable (and are using DataSetExtensions) you know that there are three other Select() methods
VB.NET:
<Extension> _
Public Shared Function [Select](Of TRow As DataRow, S)(ByVal source As TypedTableBase(Of TRow), ByVal selector As Func(Of TRow, S)) As EnumerableRowCollection(Of S)
<Extension> _
Public Shared Function [Select](Of TRow, S) _
(ByVal source As EnumerableRowCollection(Of TRow), ByVal selector As Func(Of TRow, S)) As EnumerableRowCollection(Of S)
these two i pulled from refractor(even though they look nothing like that in the intellisense), but the third i had to transpose from intellisense because I can't find it any where:
VB.NET:
MyDataTable.Select(Of TResut) _
(selector as System.Func(of MyDataTableRow, Integer, TResult)) _
As Collections.Generic.IEnumerable(Of TResult)
Now, I've used some of the delegate functions in the past, that many of the Linq extension sets require, and they can be very helpful. But where is the documentation for these?
I expect they are a more advanced selection method from the datatable, so as to reduce the complexity of the 'filterExpression' that the other DataTable.Select() methods use, or perhaps for even those special moments where a "filterExpression" is useless for the criteria that determines selection. I really want to use something like this, (a delegate select back method) and I don't want to have to reinvent the wheel. But there is no documentation on these functions.
Example: What is the TResult in the third function? What's it For? Should not the TResult be the MyDataTableRow class? These are questions documentation would help with but I can't find anything anywhere on the dataset extensions for the TypedDataTable (or anything that looks remotely like what I see in intellisense).
Thanks
Jaeden "Sifo Dyas" al'raec Ruiner