Changing Structure
This commit is contained in:
@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||||||
# Visual Studio Version 16
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 16.0.29509.3
|
VisualStudioVersion = 16.0.29509.3
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Books.ConsoleApp", "Books.ConsoleApp\Books.ConsoleApp.csproj", "{A09D7905-08C5-41F3-ADE6-2037471A2403}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Books.Console", "Books.ConsoleApp\Books.Console.csproj", "{A09D7905-08C5-41F3-ADE6-2037471A2403}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
|||||||
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Diagnostics.Contracts;
|
using System.Diagnostics.Contracts;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
|
||||||
namespace Books.ConsoleApp
|
namespace Books.Console
|
||||||
{
|
{
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
@ -82,12 +82,12 @@ namespace Books.ConsoleApp
|
|||||||
{
|
{
|
||||||
foreach (var ba in BooksByAuthorCatalogue)
|
foreach (var ba in BooksByAuthorCatalogue)
|
||||||
{
|
{
|
||||||
Console.Write("Author: {0, -28} Books: ", ba.Author);
|
System.Console.Write("Author: {0, -28} Books: ", ba.Author);
|
||||||
foreach (var book in ba.Books)
|
foreach (var book in ba.Books)
|
||||||
{
|
{
|
||||||
Console.Write(book.title + ", ");
|
System.Console.Write(book.title + ", ");
|
||||||
}
|
}
|
||||||
Console.Write(Environment.NewLine);
|
System.Console.Write(Environment.NewLine);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@ using System.Data.SqlTypes;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Books.ConsoleApp
|
namespace Books.Console
|
||||||
{
|
{
|
||||||
public static class SearchByAuthor
|
public static class SearchByAuthor
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user