I have a class library where the multithreading class is producer and consumer.
private void WorkDeQueue() { while (true) { string Url = null; lock (locker) { if (queueList.Count > 0) { Url = queueList.Dequeue(); if (Url == null) return; } } if (Url != null) { GetData(Url);
This GetData method does not have a body in this class. As I can name any method of my project instead of GetData.
I tried using factory Pattern as well as reflection, but both did not work for me. So plz tell me how I can name any method of my project here.
source share