protected internal virtual void CheckCondition(bool condition, string message) { if (!condition) { throw new InvalidOperationException(message); } }