示例#1
0
        public SirenClassAttribute(Type template, string directory, SirenGenerateMode mode = SirenGenerateMode.Generate)
        {
            Template = template;
            Directory = directory;
            Mode = mode;

            if (!Mode.HasFlag(SirenGenerateMode.Embeded)&& !Mode.HasFlag(SirenGenerateMode.Generate) &&!Mode.HasFlag(SirenGenerateMode.Suppress))
            {
                Mode |= SirenGenerateMode.Generate;
            }
        }
示例#2
0
        public SirenClassAttribute(Type template, string directory, SirenGenerateMode mode = SirenGenerateMode.Generate)
        {
            Template  = template;
            Directory = directory;
            Mode      = mode;

            if (!Mode.HasFlag(SirenGenerateMode.Embeded) && !Mode.HasFlag(SirenGenerateMode.Generate) && !Mode.HasFlag(SirenGenerateMode.Suppress))
            {
                Mode |= SirenGenerateMode.Generate;
            }
        }
示例#3
0
 public SirenClassAttribute(Type template, string directory, SirenGenerateMode mode = SirenGenerateMode.Generate)
 {
     Template  = template;
     Directory = directory;
     Mode      = mode;
 }
示例#4
0
 public SirenClassAttribute(Type template, string directory, SirenGenerateMode mode = SirenGenerateMode.Generate)
 {
     Template = template;
     Directory = directory;
     Mode = mode;
 }