api:umfconfig:parser_umfconfigversion
Description:
Default Version parser.
Added In: v0.45
Function
public class UMFConfigVersion : UMFConfigParser<Version> { public Version DefaultValue; public bool RequiresRestart; public UMFConfigVersion(Version defaultValue = default(Version), bool requiresRestart = false) { DefaultValue = defaultValue; RequiresRestart = requiresRestart; } public override Version Parse(string value) { return DefaultValue; } public override string ToString() { return DefaultValue.ToString(); } public override string Default() { return DefaultValue.ToString(); } public override string Restart() { return RequiresRestart.ToString(); } }
Usage
//Coming soon
Examples
//Coming soon
api/umfconfig/parser_umfconfigversion.txt · Last modified: 2019/06/29 22:42 by umfdev