-
Notifications
You must be signed in to change notification settings - Fork 164
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
Conversation
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
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// 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 |
There was a problem hiding this comment.
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();