Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

add object to list c#

List<Author> authors = new List<Author>  
{  
    new Author { Name = "Mahesh Chand", Book = "ADO.NET Programming", Price = 49.95 },  
    new Author { Name = "Neel Beniwal", Book = "Jump Ball", Price = 19.95 },  
    new Author { Name = "Chris Love", Book = "Practical PWA", Price = 29.95 }  
};  
// Add more items to the list  
authors.Add(new Author { Name = "Mahesh Chand", Book = "Graphics with GDI+", Price = 49.95 });  
authors.Add(new Author { Name = "Mahesh Chand", Book = "Mastering C#", Price = 54.95 });  
authors.Add(new Author { Name = "Mahesh Chand", Book = "Jumpstart Blockchain", Price = 44.95 });  
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# foreach dictionary 
Csharp :: c# create folder 
Csharp :: enum element count C# 
Csharp :: wpf richtextbox clear text 
Csharp :: void ontriggerenter not working 
Csharp :: unity joystick movement 2d 
Csharp :: destroy game object 
Csharp :: c# check if 2d array position exists 
Csharp :: unity find gameobject 
Csharp :: how to read values from appsettings.json in c# 
Csharp :: discord bot in c# 
Csharp :: c# textbox numbers only 
Csharp :: unity camera follow player 3d smooth 
Csharp :: what is public static void 
Csharp :: get all child gameObject of gameObject C# 
Csharp :: distinct prime factors count of a number 
Csharp :: remove index from array c# 
Csharp :: how to do a messagebox in c# 
Csharp :: c# jobject to string 
Csharp :: unity event 
Csharp :: how to check if a path is a directory or file c# 
Csharp :: contains char c# 
Csharp :: process.start web 
Csharp :: hide button unity 
Csharp :: c# enum syntax 
Csharp :: how to get the transform of an object in unity 
Csharp :: how to work with ascii in c# 
Csharp :: how to rotate object in unity only on one axis 
Csharp :: get text after word C# 
Csharp :: if file exist rename c# 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =