public NativeTypeAttribute(string header)
 {
     if (header == null)
     {
         throw new ArgumentNullException("header");
     }
     if (header == "")
     {
         throw new ArgumentException("header cannot be empty", "header");
     }
     this.CodegenOptions = CodegenOptions.Auto;
     this.Header         = header;
 }
示例#2
0
        public NativeTypeAttribute(string header)
        {
            bool flag = header == null;

            if (flag)
            {
                throw new ArgumentNullException("header");
            }
            bool flag2 = header == "";

            if (flag2)
            {
                throw new ArgumentException("header cannot be empty", "header");
            }
            this.CodegenOptions = CodegenOptions.Auto;
            this.Header         = header;
        }
示例#3
0
 public NativeTypeAttribute(CodegenOptions codegenOptions, string intermediateStructName) : this(codegenOptions)
 {
     IntermediateScriptingStructName = intermediateStructName;
 }
示例#4
0
 public NativeTypeAttribute(string header, CodegenOptions codegenOptions) : this(header)
 {
     CodegenOptions = codegenOptions;
 }
示例#5
0
 public NativeTypeAttribute(CodegenOptions codegenOptions)
 {
     CodegenOptions = codegenOptions;
 }
示例#6
0
 public NativeTypeAttribute()
 {
     CodegenOptions = CodegenOptions.Auto;
 }
 public ProjectRunnerCodegenService(IProject project)
 {
     _project = project;
     _options = project.Options ?? new CodegenOptions();
 }