private static string FormatOutput(ModelExplorer modelExplorer) { var metadata = modelExplorer.Metadata; return(string.Format( CultureInfo.InvariantCulture, "Model = {0}, ModelType = {1}, PropertyName = {2}, SimpleDisplayText = {3}", modelExplorer.Model ?? "(null)", metadata.ModelType == null ? "(null)" : metadata.ModelType.FullName, metadata.PropertyName ?? "(null)", modelExplorer.GetSimpleDisplayText() ?? "(null)")); }
protected virtual string GenerateDisplayText(ModelExplorer modelExplorer) { return(modelExplorer.GetSimpleDisplayText() ?? string.Empty); }