Note that there are some explanatory texts on larger screens.

plurals
  1. PONot getting which assembly reference I need to add to remove red mark from FileSystemWatcher in c#
    primarykey
    data
    text
    <p>I have a c# program which is using <code>FileSystemWatcher</code> to watch and get the lines. But my concern is that I am not getting which assembly reference I need to add to remove red error mark from the program ..</p> <p>Here is my code..</p> <pre><code>public void File_Changed(object source, FileSystemEventArgs e) { lock (this) { if (!this.bPaused) { bool bMoreData = false; // Read from current seek position to end of file byte[] bytesRead = new byte[this.iMaxBytes]; FileStream fs = new FileStream(this.strFilename, FileMode.Open, FileAccess.Read, FileShare.ReadWrite); if (0 == this.iPreviousSeekPos) { if (this.bReadFromStart) { if (null != this.BeginReadStart) { this.BeginReadStart(null, null); } this.bReadingFromStart = true; } else { if (fs.Length &gt; this.iMaxBytes) { this.iPreviousSeekPos = fs.Length - this.iMaxBytes; } } } this.iPreviousSeekPos = (int)fs.Seek(this.iPreviousSeekPos, SeekOrigin.Begin); int iNumBytes = fs.Read(bytesRead, 0, this.iMaxBytes); this.iPreviousSeekPos += iNumBytes; // If we haven't read all the data, then raise another event if (this.iPreviousSeekPos &lt; fs.Length) { bMoreData = true; } fs.Close(); string strData = this.encoding.GetString(bytesRead); this.MoreData(this, strData); if (bMoreData) { File_Changed(null, null); } else { if (this.bReadingFromStart) { this.bReadingFromStart = false; if (null != this.EndReadStart) { this.EndReadStart(null, null); } } } } } } </code></pre> <p>I am getting red underline marks in the following code snippets ..</p> <pre><code>if (!this.bPaused) this.iMaxBytes this.iPreviousSeekPos this.bReadFromStart </code></pre> <p>Please guys help me.</p> <p>Thanks in advance..</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload