Create a
ProjectionSelector for the specified type and property path.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instanceType As Type
Dim propertyPath As String
Dim alias As String
Dim instance As New ProjectionSelector(instanceType, propertyPath, alias) |
Parameters
- instanceType
- propertyPath
- alias
Example
C# | Copy Code |
---|
public void DynamicAnonQuery() {
var ps1 = new ProjectionSelector(typeof(Customer), "Id");
var ps2 = new ProjectionSelector(typeof(Customer), "CompanyName");
var allps = ProjectionSelector.Combine(new[] {ps1, ps2});
var query = manager.Customers.Select(allps);
var anonItems = query.Execute();
} |
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also