Answers for "FileSystemEventHandler raised twice"

C#
0

FileSystemEventHandler raised twice

private bool IsExecuting { get; set; }

private void OnChanged(object sender, FileSystemEventArgs e)
{
    if (!IsExecuting) 
    {
        IsExecuting = true;

        // rest of your code

        IsExecuting = false;
    }
}
Posted by: Guest on May-07-2022

C# Answers by Framework

Browse Popular Code Answers by Language