public TemplateInfo(TemplateInfo original) { FormattedModelValue = original.FormattedModelValue; HtmlFieldPrefix = original.HtmlFieldPrefix; _visitedObjects = new HashSet <object>(original._visitedObjects); }
private static bool ShouldShow(ModelExplorer modelExplorer, TemplateInfo templateInfo) { return modelExplorer.Metadata.ShowForEdit && !modelExplorer.Metadata.IsComplexType && !templateInfo.Visited(modelExplorer); }
public TemplateInfo(TemplateInfo original) { FormattedModelValue = original.FormattedModelValue; HtmlFieldPrefix = original.HtmlFieldPrefix; _visitedObjects = new HashSet<object>(original._visitedObjects); }