code/Kingdom.OrTools.Sat.CodeGeneration.Core/Services/SatParameterCodeGeneratorService.cs
/// <summary>
/// Returns the Available Versions from the <see cref="PackagePath"/>. We make several
/// assumptions concerning this strategy. First, we assume that the Package Directories
/// are enumerated by Version Numbers. Second, we assume that the Version Numbers are
/// three part Dot delimited Integers. Third, we are also depending upon a couple of
/// clutch Build Targets in order to generate the Package Path code for internal use.
/// </summary>
/// <returns></returns>
/// <see cref="GoogleOrToolsConstants"/>
/// <see cref="PackagePath"/>
Returns the Available Versions from the . We make several
assumptions concerning this strategy. First, we assume that the Package Directories
are enumerated by Version Numbers. Second, we assume that the Version Numbers are
three part Dot delimited Integers. Third, we are also depending upon a couple of
clutch Build Targets in order to generate the Package Path code for internal use.
Returns the Available Versions from the . We make several assumptions concerning this strategy . First we assume that the Package Directories are enumerated by Version Numbers . Second we assume that the Version Numbers are three part Dot delimited Integers . Third we are also depending upon a couple of clutch Build Targets in order to generate the Package Path code for internal use .
private static IEnumerable<Version> GetAvailableVersions()
            => Directory.EnumerateDirectories(PackagePath)
                .Select(Path.GetFileName)
                .Select(x => x.Split(dot[0]).Select(int.Parse).ToArray())
                .Select(y => new Version(y[0], y[1], y[2]));
private static IEnumerable < Version > GetAvailableVersions ( ) => Directory . EnumerateDirectories ( PackagePath ) . Select ( Path . GetFileName ) . Select ( x => x . Split ( dot [ 0 ] ) . Select ( int . Parse ) . ToArray ( ) ) . Select ( y => new Version ( y [ 0 ] , y [ 1 ] , y [ 2 ] ) ) ;
Returns the Available Versions from the .
Returns the Available Versions from the .
None
see
None
see
None