示例#1
0
文件: Program.cs 项目: serra/CLAP
        public static void Zoo(
            int num1,
            [MoreThan(10)] int thenum2,
            [LessOrEqualTo(100)]
            [DefaultValue(55), Description("a number")] int anum3,
            BindingFlags bf,

            [Required]
            bool rsw,

            [DefaultProvider(typeof(MyDefaultProvider1))] bool sw1,
            [DefaultProvider(typeof(MyDefaultProvider2))] bool hsw2,
            ClapApp clap)
        {
        }
示例#2
0
文件: Program.cs 项目: serra/CLAP
        public static void Zoo(
            int num1,
            [MoreThan(10)] int thenum2,
            [LessOrEqualTo(100)]
            [DefaultValue(55), Description("a number")] int anum3,
            BindingFlags bf,

            [Required]
            bool rsw,

            [DefaultProvider(typeof(MyDefaultProvider1))] bool sw1,
            [DefaultProvider(typeof(MyDefaultProvider2))] bool hsw2,
            ClapApp clap)
        {
        }