KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have the method shown below which is generating a CA1822 Code Analysis warning. CA1822 says this: "The 'this parameter (or 'Me' in Visual Basic) of 'ImportForm.ProcessFile(StreamReader)' is never used. Mark the member as static (or Shared in Visual Basic) or use 'this/Me' in the method body or at least one property accessor, if appropriate." Can anyone tell me why I am getting this warning, since the 'reader' parameter is in fact being used? private void ProcessFile(StreamReader reader) { string[] lines; lines = reader.ReadToEnd().Split(new string[] { Environment.NewLine }, StringSplitOptions.None); ParseFile.IVAFile(lines); }
Tags (comma-separated)
Save Edits
Cancel