I have 2 C # declaration tables, it initializes the column during program creation.
I wanted to join this table base in UserID and UserName.
My code is like the following
from nSJL in UserList.AsEnumerable() join SJL in UserListOnline.AsEnumerable() on new { nSJL.Field<int>("UserID"), nSJL.Field<string>("UserName") } equals new { nSJL.Field<int>("UserID"), nSJL.Field<string>("UserName") } into sjList
in this code i get an error
Invalid member declarator of anonymous type. Members of an anonymous type must be declared with the appointment of members, a simple name, or access to a member.
Anyway to join an anonymous type?
source share