From b6c0bef97a8a16a50c47be32d1ed54a56c65b17e Mon Sep 17 00:00:00 2001 From: Mark J Price Date: Tue, 21 Mar 2023 07:07:48 +0000 Subject: [PATCH] Remove unneeded parentheses --- vs4win/Chapter06/PeopleApp/Program.cs | 6 +++--- vscode/Chapter06/PeopleApp/Program.cs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/vs4win/Chapter06/PeopleApp/Program.cs b/vs4win/Chapter06/PeopleApp/Program.cs index e7aa6bf..7b5024a 100644 --- a/vs4win/Chapter06/PeopleApp/Program.cs +++ b/vs4win/Chapter06/PeopleApp/Program.cs @@ -80,19 +80,19 @@ OutputPeopleNames(people, int a = 3; int b = 3; WriteLine($"a: {a}, b: {b}"); -WriteLine($"a == b: {(a == b)}"); +WriteLine($"a == b: {a == b}"); Person p1 = new() { Name = "Kevin" }; Person p2 = new() { Name = "Kevin" }; WriteLine($"p1: {p1}, p2: {p2}"); -WriteLine($"p1 == p2: {(p1 == p2)}"); +WriteLine($"p1 == p2: {p1 == p2}"); Person p3 = p1; WriteLine($"p3: {p3}"); WriteLine($"p1 == p3: {(p1 == p3)}"); WriteLine($"p1.Name: {p1.Name}, p2.Name: {p2.Name}"); -WriteLine($"p1.Name == p2.Name: {(p1.Name == p2.Name)}"); +WriteLine($"p1.Name == p2.Name: {p1.Name == p2.Name}"); // Defining struct types diff --git a/vscode/Chapter06/PeopleApp/Program.cs b/vscode/Chapter06/PeopleApp/Program.cs index e7aa6bf..7b5024a 100644 --- a/vscode/Chapter06/PeopleApp/Program.cs +++ b/vscode/Chapter06/PeopleApp/Program.cs @@ -80,19 +80,19 @@ OutputPeopleNames(people, int a = 3; int b = 3; WriteLine($"a: {a}, b: {b}"); -WriteLine($"a == b: {(a == b)}"); +WriteLine($"a == b: {a == b}"); Person p1 = new() { Name = "Kevin" }; Person p2 = new() { Name = "Kevin" }; WriteLine($"p1: {p1}, p2: {p2}"); -WriteLine($"p1 == p2: {(p1 == p2)}"); +WriteLine($"p1 == p2: {p1 == p2}"); Person p3 = p1; WriteLine($"p3: {p3}"); WriteLine($"p1 == p3: {(p1 == p3)}"); WriteLine($"p1.Name: {p1.Name}, p2.Name: {p2.Name}"); -WriteLine($"p1.Name == p2.Name: {(p1.Name == p2.Name)}"); +WriteLine($"p1.Name == p2.Name: {p1.Name == p2.Name}"); // Defining struct types