I'm having problem with the syntax of how to add an existing value to the index of an array in array.
Assigning values to the main array is no problem i.e.:
	
	
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
... but reaching the Toys array and its fields is a trickier one. I manage to get the field by iterating through the array using a foreach loop. But how isn't it possible to target an specifik index and its value like:
	
	
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
EDIT: I'm a bit embarressed, fresh eyes and I managed to solve it lol.
	
	
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
	
		
			
		
		
	
				
			Assigning values to the main array is no problem i.e.:
			
				C#:
			
		
		
		Pets[0].Name = "Brooom";... but reaching the Toys array and its fields is a trickier one. I manage to get the field by iterating through the array using a foreach loop. But how isn't it possible to target an specifik index and its value like:
			
				What's the syntax:
			
		
		
		Pets[0].Toys[0].?...what goes here to get i.e. the color?EDIT: I'm a bit embarressed, fresh eyes and I managed to solve it lol.
			
				C#:
			
		
		
		Pets[0].Toys[0].Name = "Brooom";
			
				Last edited: 
			
		
	
								
								
									
	
		
			
		
		
	
	
	
		
			
		
		
	
								
							
							 
	 
 
		 
 
		 
 
		