I have a code like this:
public class SomeClass { int _processProgress; public int ProcessProgress { get { return _processProgress; } set { _processProgress = value; if (ProcessProgressChanged != null) ProcessProgressChanged(value); } } public delegate void ProcessProgressChangedEventHandler(int progressPercentage); public event ProcessProgressChangedEventHandler ProcessProgressChanged; public void ClearProcessProgressChangedEvent() { this.ProcessProgressChanged = null; } }
Will it unsubscribe from all methods in the ProcessProgressChanged event when I call the ClearProcessProgressChangedEvent() method?
My code is in C #, framework 4, in VS2010 Pro, the project is in Winforms.
Please, help. Thanks in advance.
John Isaiah Carmona
source share