Core/CafeLib.Core/Support/SemVer.cs
/// <summary>
/// Make a copy of the current instance with optional altered fields. 
/// </summary>
/// <param name="major">The major version.</param>
/// <param name="minor">The minor version.</param>
/// <param name="patch">The patch version.</param>
/// <param name="prerelease">The prerelease text.</param>
/// <param name="build">The build text.</param>
/// <returns>The new version object.</returns>
Make a copy of the current instance with optional altered fields.
Make a copy of the current instance with optional altered fields .
public SemVer Copy(int? major = null, int? minor = null, int? patch = null, string prerelease = null, string build = null)
        {
            return new SemVer(
                major ?? Major,
                minor ?? Minor,
                patch ?? Patch,
                prerelease ?? Prerelease,
                build ?? Build);
        }
public SemVer Copy ( int ? major = null , int ? minor = null , int ? patch = null , string prerelease = null , string build = null ) { return new SemVer ( major ?? Major , minor ?? Minor , patch ?? Patch , prerelease ?? Prerelease , build ?? Build ) ; }
Make a copy of the current instance with optional altered fields.
Make a copy of the current instance with optional altered fields .
The new version object.
The new version object .
major
int?
The major version.
The major version .
minor
int?
The minor version.
The minor version .
patch
int?
The patch version.
The patch version .
prerelease
string
The prerelease text.
The prerelease text .
build
string
The build text.
The build text .