© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
3y ago
•
22 replies
Mysel
❔ Foreach on two different lists
Hey i would like to know how to do a foreach loop for these two different lists where it can print out
"aBook
" and
"aAuthor
" in the same line
, something like
Console.WriteLine(aBook + " by " aAuthor)
Console.WriteLine(aBook + " by " aAuthor)
thank you in advance
!
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
how to join two lists?
C
C# / help
3y ago
✅ how do i join two lists?
C
C# / help
2y ago
❔ Foreach
C
C# / help
3y ago
❔ Using two lists, compare, and render based on smaller list [Answered]
C
C# / help
4y ago