-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEmployeeDataSource.vb
39 lines (36 loc) · 1017 Bytes
/
EmployeeDataSource.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Imports System.Collections.Generic
Namespace Reporting_Create_Report_Parameter_with_Predefined_Dynamic_Values
Public Class Employee
Public Property Name() As String
Public Property Position() As String
End Class
Public Class EmployeeDataSource
Private employees As New List(Of Employee)() From {
New Employee() With {
.Name = "Antonio Moreno",
.Position = "CEO"
},
New Employee() With {
.Name = "Thomas Hardy",
.Position = "Sales Representative"
},
New Employee() With {
.Name = "Christina Berglund",
.Position = "Order Administrator"
},
New Employee() With {
.Name = "Frédérique Citeaux",
.Position = "Marketing Manager"
},
New Employee() With {
.Name = "Hanna Moos",
.Position = "Software Developer"
}
}
Public Iterator Function GetEmployeeList() As IEnumerable(Of Employee)
For Each employee In employees
Yield employee
Next employee
End Function
End Class
End Namespace