示例#1
0
 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);
 }
示例#3
0
 public TemplateInfo(TemplateInfo original)
 {
     FormattedModelValue = original.FormattedModelValue;
     HtmlFieldPrefix = original.HtmlFieldPrefix;
     _visitedObjects = new HashSet<object>(original._visitedObjects);
 }