query Dynamic List<T> -- List<dynamic>
we have a function returns List<dynamic>
	
	
	
		
		
		
			
		
		
	
	
		 
	
in debug mode filled by :
	
	
	
		
		
		
		
	
	
		 
	
normally we will write :
	
	
	
		
		
		
		
	
	
		 
	
this will throw an exception like :
	
	
	
		
		
		
		
	
	
		 
	
the solution is to use reflection :
	
	
	
		
			
			we have a function returns List<dynamic>
 
	in debug mode filled by :
 
	normally we will write :
 
	this will throw an exception like :
 
	the solution is to use reflection :
		JavaScript:
	
	object d = ComTaxOffice.GetTaxOffices().FirstOrDefault(p => p.GetType().GetProperty("TaxOfficeId").GetValue(p, null).ToString() == "3");