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

Fix erroneous warnings v8 #54

merged 6 commits into from
Jul 3, 2019

Conversation

COsborn2
Copy link
Contributor

@COsborn2 COsborn2 commented Jul 3, 2019

  • Remove warnings from Chapters 06 on.
  • Update Listing06.18, 06.19, 06.49, 08.04, 08.05. Manuscript updates to follow

@COsborn2 COsborn2 requested a review from Keboo July 3, 2019 21:25
@@ -8,16 +8,16 @@ public class Program
public static void Main()
{
string[] values;
Contact contact1, contact2 = null;
Contact contact = null;

// ...

// ERROR: Unable to call ColumnValues() directly
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// ERROR: Unable to call ColumnValues() directly
// ERROR: Unable to call .ColumnValues directly

@@ -8,16 +8,16 @@ public class Program
public static void Main()
{
string[] values;
Contact contact1, contact2 = null;
Contact contact = null;

// ...

// ERROR: Unable to call ColumnValues() directly
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// ERROR: Unable to call ColumnValues() directly
// ERROR: Unable to call .ColumnValues directly

@@ -2,6 +2,8 @@
{
using System;
using System.IO;
// Program.Data should take some value in a complete implementation
#pragma warning disable CS0649
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we simply fix the warning with

private readonly WeakReference Data = new WeakReference();

@COsborn2 COsborn2 merged commit 37c6f9f into v8.0 Jul 3, 2019
@COsborn2 COsborn2 deleted the fix-erroneous-warnings-v8 branch July 8, 2019 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants