コード例 #1
0
        public SemanticVersion Create(Version version, string specialVersion, string orginalValue)
        {
            if (version == null)
            {
                throw XArgumentException.IsNull(nameof(version));
            }

            var semanticVersion = new SemanticVersion
            {
                SpecialVersion = specialVersion ?? string.Empty,
                OrginalValue   = string.IsNullOrEmpty(orginalValue) ? version + (!string.IsNullOrEmpty(specialVersion) ? '-' + specialVersion : null) : orginalValue,
            };

            XNotImplemented.CommentedOutTemporarily("Need to revist the source documentation and complete the algorithm.");


            return(semanticVersion);
        }
コード例 #2
0
 public SemanticVersion Create(Version version, string specialVersion)
 {
     return(Create(version, specialVersion, null));
 }
コード例 #3
0
 public SemanticVersion Create(Version version)
 {
     return(Create(version, string.Empty));
 }