User Tools

Site Tools


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


This topic does not exist yet

You've followed a link to a topic that doesn't exist yet. If permissions allow, you may create it by clicking on Create this page.

api/umfconfig/parser_umfconfigversion.txt · Last modified: 2019/06/29 23:42 by umfdev