Exemple #1
0
 public ModelConsistencyCheckVisitor(INodeBuilder nodeBuilder)
 {
     if (nodeBuilder == null)
     {
         throw new ArgumentNullException("nodeBuilder");
     }
     this.nodeBuilder = nodeBuilder as DefaultModelBuilder;
     if (this.nodeBuilder == null)
     {
         throw new ArgumentException(@"This argument should be a DefaultModelBuilder", "nodeBuilder");
     }
 }
Exemple #2
0
        private INodeBuilder CreateDefaultNodeBuilder()
        {
            var nodeBuilder = new DefaultModelBuilder(this);

            return(nodeBuilder);
        }
 public ModelConsistencyCheckVisitor(INodeBuilder nodeBuilder)
 {
     if (nodeBuilder == null) throw new ArgumentNullException("nodeBuilder");
     this.nodeBuilder = nodeBuilder as DefaultModelBuilder;
     if (this.nodeBuilder == null) throw new ArgumentException(@"This argument should be a DefaultModelBuilder", "nodeBuilder");
 }
Exemple #4
0
        private static INodeBuilder CreateDefaultNodeBuilder()
        {
            var nodeBuilder = new DefaultModelBuilder();

            return(nodeBuilder);
        }
 private INodeBuilder CreateDefaultNodeBuilder()
 {
     var nodeBuilder = new DefaultModelBuilder(this);
     return nodeBuilder;
 }