コード例 #1
0
 public CSharpTypeMemberVisitor([NotNull] CSharpCodeVisitor csharpCodeVisitor,
                                [NotNull] CSharpCodeWriter writer,
                                [NotNull] CodeGeneratorContext context)
     : base(writer, context)
 {
     _csharpCodeVisitor = csharpCodeVisitor;
 }
コード例 #2
0
        public CSharpDesignTimeHelpersVisitor([NotNull] CSharpCodeVisitor csharpCodeVisitor,
                                              [NotNull] CSharpCodeWriter writer,
                                              [NotNull] CodeGeneratorContext context)

            : base(writer, context)
        {
            _csharpCodeVisitor = csharpCodeVisitor;
        }
コード例 #3
0
        public CSharpDesignTimeCodeVisitor(
            CSharpCodeVisitor csharpCodeVisitor,
            CSharpCodeWriter writer,
            CodeGeneratorContext context)
            : base(writer, context)
        {
            if (csharpCodeVisitor == null)
            {
                throw new ArgumentNullException(nameof(csharpCodeVisitor));
            }

            CSharpCodeVisitor = csharpCodeVisitor;
        }
コード例 #4
0
        public CSharpTypeMemberVisitor(CSharpCodeVisitor csharpCodeVisitor,
                                       CSharpCodeWriter writer,
                                       CodeGeneratorContext context)
            : base(writer, context)
        {
            if (csharpCodeVisitor == null)
            {
                throw new ArgumentNullException(nameof(csharpCodeVisitor));
            }

            if (writer == null)
            {
                throw new ArgumentNullException(nameof(writer));
            }

            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            _csharpCodeVisitor = csharpCodeVisitor;
        }