object IBaseViewContent.GetContent(Type type) { if (type.IsAssignableFrom(typeof(TextEditor))) { return(textEditor); } var ext = textEditorImpl.EditorExtension; while (ext != null) { if (type.IsInstanceOfType(ext)) { return(ext); } ext = ext.Next; } return(textEditorImpl.GetContent(type)); }