private void SetFieldValue(CatThreadPool pool, string field, string value) { switch (field) { case "type": case "t": pool.Type = value; return; case "active": case "a": pool.Active = value; return; case "size": case "s": pool.Size = value; return; case "queue": case "q": pool.Queue = value; return; case "queueSize": case "qs": pool.QueueSize = value; return; case "rejected": case "r": pool.Rejected = value; return; case "largest": case "l": pool.Largest = value; return; case "completed": case "c": pool.Completed = value; return; case "min": case "mi": pool.Min = value; return; case "max": case "ma": pool.Max = value; return; case "keepAlive": case "k": pool.KeepAlive = value; return; } }
private void SetFieldValue(CatThreadPool pool, string field, string value) { switch(field) { case "type": case "t": pool.Type = value; return; case "active": case "a": pool.Active = value; return; case "size": case "s": pool.Size = value; return; case "queue": case "q": pool.Queue = value; return; case "queueSize": case "qs": pool.QueueSize = value; return; case "rejected": case "r": pool.Rejected = value; return; case "largest": case "l": pool.Largest = value; return; case "completed": case "c": pool.Completed = value; return; case "min": case "mi": pool.Min = value; return; case "max": case "ma": pool.Max = value; return; case "keepAlive": case "k": pool.KeepAlive = value; return; } }