static public void Clear ( Guid category ) { lock (lockObj) { lines.RemoveAll( line => line.Category == category ); } }