Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

linq convert list to another list

List<objA> listA = GetObjAList();

List<objB> listB = objA.Select(oA => new objB()
	{
		prop1 = oA.prop1,
		nextProp = oA.someProp
	}).ToList();
Comment

PREVIOUS NEXT
Code Example
Csharp :: car controller unity 
Csharp :: c# sbyte 
Csharp :: dotnet add package 
Csharp :: how to call last string from text file C# 
Csharp :: unity save scene at runtime 
Csharp :: unity play animation on click 
Csharp :: how to show a first item in a combobox in c# winforms 
Csharp :: convert json date to datetime c# 
Csharp :: c# method 
Csharp :: serialize object to json 
Csharp :: list c# 
Csharp :: value is null to insert in c# 
Csharp :: remove control characters from string c# 
Csharp :: delete all fields that start with mongo 
Csharp :: Proxy in Config 
Csharp :: add to ienumerable 
Csharp :: pork hub 
Csharp :: exit form esc winforms 
Csharp :: mongodb custom IIdGenerator 
Csharp :: 1180 beecrowd URI 
Csharp :: Go Statement in CSharp 
Csharp :: public controller script unity 3d 
Csharp :: DisplayUnitType revit api 
Csharp :: how to get user browser information in .net core 
Csharp :: c# .net RemoveClaim auth 
Csharp :: Include multiple siblings at the Level 
Csharp :: c# bitwise and 
Csharp :: how to change something in the window using a thread wpf 
Csharp :: C# Relational Operators 
Csharp :: how to create an initialized jtoken c# 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =