public static void VisitViewContained(ViewDataVisitorContained viewDataVisitor, ViewFactory viewFactory, View[] views) { viewDataVisitor.VisitPrimary(viewFactory.ViewName, views.Length); for (int i = 0; i < views.Length; i++) { viewDataVisitor.VisitContained(i, views[i]); } }
public static void VisitViewContained( ViewDataVisitorContained viewDataVisitor, ViewFactory viewFactory, View[] views) { viewDataVisitor.VisitPrimary(viewFactory.GetType().GetSimpleName(), views.Length); for (var i = 0; i < views.Length; i++) { viewDataVisitor.VisitContained(i, views[i]); } }
public static void VisitView( ViewDataVisitorContained viewDataVisitor, object groupkey, View view) { if (view == null) { return; } viewDataVisitor.VisitContained(groupkey, view); }
public static void VisitView(ViewDataVisitorContained viewDataVisitor, Object groupkey, Object subviewHolder) { if (subviewHolder == null) { return; } if (subviewHolder is View) { viewDataVisitor.VisitContained(groupkey, (View)subviewHolder); return; } if (subviewHolder is ICollection <View> ) { var deque = (ICollection <View>)subviewHolder; foreach (var view in deque) { viewDataVisitor.VisitContained(groupkey, view); return; } } }