public void Write(string text) { if (String.IsNullOrEmpty(text) == true || _listHandlers == null || _listHandlers.Count == 0) { return; } int itemCount = _listHandlers.Count; for (int i = 0; i < itemCount; i++) { IRegistrationHelper handler = _listHandlers[i]; if (handler != null) { handler.Write(text); } } }