CryptoKeyGenerator
所属分类:加密解密
开发工具:C#
文件大小:59KB
下载次数:0
上传日期:2013-07-17 19:55:50
上 传 者:
sh-1993
说明: 加密密钥生成器,,
(CryptoKeyGenerator,,)
文件列表:
CryptoKeyGenerator.sln (924, 2013-07-18)
CryptoKeyGenerator (0, 2013-07-18)
CryptoKeyGenerator\App.config (182, 2013-07-18)
CryptoKeyGenerator\CryptoKeyGenerator.csproj (2700, 2013-07-18)
CryptoKeyGenerator\Program.cs (2174, 2013-07-18)
CryptoKeyGenerator\Properties (0, 2013-07-18)
CryptoKeyGenerator\Properties\AssemblyInfo.cs (1468, 2013-07-18)
CryptoKeyGenerator\packages.config (144, 2013-07-18)
LICENSE.txt (1055, 2013-07-18)
packages (0, 2013-07-18)
packages\CommandLineParser.1.9.3.19 (0, 2013-07-18)
packages\CommandLineParser.1.9.3.19\CommandLineParser.1.9.3.19.nupkg (32384, 2013-07-18)
packages\CommandLineParser.1.9.3.19\lib (0, 2013-07-18)
packages\CommandLineParser.1.9.3.19\lib\CommandLine.XML (47874, 2013-07-18)
packages\CommandLineParser.1.9.3.19\lib\CommandLine.dll (40448, 2013-07-18)
packages\repositories.config (134, 2013-07-18)
Command Line Parser Library 1.9.3.19 Beta
-----------------------------------------
Giacomo Stelluti Scala
(gsscoder@gmail.com)
Codeplex: http://commandline.codeplex.com/
GitHub (Latest Sources, Updated Docs): https://github.com/gsscoder/commandline
Upgrading from 1.8.* versions:
------------------------------
The major API change is that all attributes that inherits from BaseOptionAttribute now
apply only to properties. Fields are no longer supported.
Old Code:
---------
class Options {
[Option("o", "my-option", HelpText="This is an option!")]
public int MyOption = 10;
}
New Code:
---------
class Options {
[Option("o", "my-option", DefaultValue=10, HelpText="This is an option!")]
public int MyOption { get; set; }
}
As you can see I've added the new DefaultValue property to help you initialize properties.
Shortcut for Help Screen
------------------------
[HelpOption]
public string GetUsage()
{
return HelpText.AutoBuild(this,
(HelpText current) => HelpText.DefaultParsingErrorsHandler(this, current));
}
Note:
-----
If you don't use mutually exclusive options, now there's a singleton built for common uses:
if (CommandLineParser.Default.ParseArguments(args, options)) {
// consume values here
}
Have fun!
近期下载者:
相关文件:
收藏者: