Skip to content

Fix erroneous warnings v8 #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 3, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove warnings from Chapter07
  • Loading branch information
COsborn2 committed Jul 3, 2019
commit c4ca2d5f35b84b5e3415f265834abb7468017845
3 changes: 3 additions & 0 deletions src/Chapter07/Listing07.06.PrivateMembersAreNotInherited.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter07.Listing07_06
{
// In a properly implemented class we could use our Contact class
#pragma warning disable CS0169
public class PdaItem
{
private string _Name;
Expand All @@ -22,4 +24,5 @@ public static void Main()
//contact._Name = "Inigo Montoya"; //uncomment this line and it will not compile
}
}
#pragma warning restore CS0169
}
3 changes: 3 additions & 0 deletions src/Chapter07/Listing07.18.DefiningAnAbstractClass.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter07.Listing07_18
{
// With a concrete implementation we could use our PdaItem object
#pragma warning disable CS0168
public abstract class PdaItem
{
public PdaItem(string name)
Expand All @@ -19,4 +21,5 @@ public static void Main()
//item = new PdaItem("Inigo Montoya"); //uncomment this line and it will not compile
}
}
#pragma warning restore CS0168
}