/// <summary> /// Validates the specified modelNode. /// </summary> /// <param name="modelNode">The model.</param> /// <returns></returns> public static IList <IValidationResult> Validate(this IModelNode modelNode) { var visitor = new ValidationVisitor(); modelNode.Accept(visitor); return(visitor.Result); }
public virtual IModelNode Visit(IModelNode modelNode) { if (modelNode != null) { return(modelNode.Accept(this)); } return(null); }
public IModelNode Visit(IModelNode modelNode) { return(modelNode?.Accept(this)); }