Skip to content

Commit dbe2a8d

Browse files
committed
♻️ gen: Move HashGuid for reuse
1 parent 119995c commit dbe2a8d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CodeGen/Generators/NanoFrameworkGen/ProjectGenerator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using CodeGen.Helpers;
23
using CodeGen.JsonTypes;
34

45
namespace CodeGen.Generators.NanoFrameworkGen

CodeGen/Generators/NanoFrameworkGen/SolutionGenerator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
using System;
22
using System.Text;
3+
using CodeGen.Helpers;
34
using CodeGen.JsonTypes;
45

56
namespace CodeGen.Generators.NanoFrameworkGen
67
{
78
class SolutionGenerator:GeneratorBase
89
{
910
private readonly Quantity[] _quantities;
10-
private readonly Guid _globalGuid = new("d608a2b1-6ead-4383-a205-ad1ce69d9ef7");
11+
private readonly Guid _globalGuid = new("d608a2b1-6ead-4383-a205-ad1ce69d9ef7"); // Randomly generated guids.
1112
private readonly Guid _solutionGuid = new("43971d92-3663-4f28-82ac-e63ce06ba1a3");
1213

1314
public SolutionGenerator(Quantity[] quantities)

CodeGen/Generators/NanoFrameworkGen/HashGuid.cs renamed to CodeGen/Helpers/HashGuid.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// Licensed under MIT No Attribution, see LICENSE file at the root.
1+
// Licensed under MIT No Attribution, see LICENSE file at the root.
22
// Copyright 2013 Andreas Gullberg Larsen ([email protected]). Maintained at https://github.com/angularsen/UnitsNet.
33

44
using System;
55
using System.Text;
66

7-
namespace CodeGen.Generators.NanoFrameworkGen
7+
namespace CodeGen.Helpers
88
{
99
/// <summary>
1010
/// Helper methods for consistently getting the same guid for a given string.

0 commit comments

Comments
 (0)