예제 #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));
 }