-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replacing EnumBase with Intellenum, so that there is no more reflecti…
…on being directly used by the project.
- Loading branch information
Showing
13 changed files
with
84 additions
and
98 deletions.
There are no files selected for viewing
Submodule LancachePrefill.Common
updated
5 files
+2 −2 | dotnet/CliFxConverters.cs | |
+0 −84 | dotnet/Enums/EnumBase.cs | |
+4 −7 | dotnet/Enums/TransferSpeedUnit.cs | |
+5 −0 | dotnet/LancachePrefill.Common.csproj | |
+2 −3 | dotnet/Properties/GlobalUsings.cs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
namespace SteamPrefill.Models.Enums | ||
{ | ||
[UsedImplicitly(ImplicitUseTargetFlags.Members)] | ||
public class Architecture : EnumBase<Architecture> | ||
[Intellenum(typeof(string))] | ||
public sealed partial class Architecture | ||
{ | ||
public static readonly Architecture unknown = new Architecture("unknown"); | ||
public static readonly Architecture x86 = new Architecture("32"); | ||
public static readonly Architecture x64 = new Architecture("64"); | ||
|
||
private Architecture(string name) : base(name) | ||
{ | ||
} | ||
public static readonly Architecture unknown = new("unknown"); | ||
public static readonly Architecture x86 = new("32"); | ||
public static readonly Architecture x64 = new("64"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,45 @@ | ||
namespace SteamPrefill.Models.Enums | ||
{ | ||
[UsedImplicitly(ImplicitUseTargetFlags.Members)] | ||
public class Language : EnumBase<Language> | ||
[Intellenum(typeof(string))] | ||
public sealed partial class Language | ||
{ | ||
public static readonly Language English = new Language("english"); | ||
|
||
public static readonly Language Arabic = new Language("arabic"); | ||
public static readonly Language Brazilian = new Language("brazilian"); | ||
public static readonly Language Bulgarian = new Language("bulgarian"); | ||
|
||
public static readonly Language Chinese = new Language("chinese"); | ||
public static readonly Language ChineseSimplified = new Language("schinese"); | ||
public static readonly Language ChineseTraditional = new Language("tchinese"); | ||
public static readonly Language Czech = new Language("czech"); | ||
|
||
public static readonly Language Danish = new Language("danish"); | ||
public static readonly Language Dutch = new Language("dutch"); | ||
|
||
public static readonly Language Finnish = new Language("finnish"); | ||
public static readonly Language French = new Language("french"); | ||
public static readonly Language German = new Language("german"); | ||
public static readonly Language Greek = new Language("greek"); | ||
|
||
public static readonly Language Hungarian = new Language("hungarian"); | ||
public static readonly Language Italian = new Language("italian"); | ||
public static readonly Language Japanese = new Language("japanese"); | ||
public static readonly Language Korean = new Language("koreana"); | ||
public static readonly Language Latam = new Language("latam"); | ||
|
||
public static readonly Language Norwegian = new Language("norwegian"); | ||
public static readonly Language Polish = new Language("polish"); | ||
public static readonly Language Portuguese = new Language("portuguese"); | ||
public static readonly Language Spanish = new Language("spanish"); | ||
|
||
public static readonly Language Romanian = new Language("romanian"); | ||
public static readonly Language Russian = new Language("russian"); | ||
public static readonly Language Thai = new Language("thai"); | ||
public static readonly Language Turkish = new Language("turkish"); | ||
public static readonly Language Swedish = new Language("swedish"); | ||
public static readonly Language Ukrainian = new Language("ukrainian"); | ||
public static readonly Language Vietnamese = new Language("vietnamese"); | ||
|
||
private Language(string name) : base(name) | ||
{ | ||
} | ||
public static readonly Language English = new("english"); | ||
|
||
public static readonly Language Arabic = new("arabic"); | ||
public static readonly Language Brazilian = new("brazilian"); | ||
public static readonly Language Bulgarian = new("bulgarian"); | ||
|
||
public static readonly Language Chinese = new("chinese"); | ||
public static readonly Language ChineseSimplified = new("schinese"); | ||
public static readonly Language ChineseTraditional = new("tchinese"); | ||
public static readonly Language Czech = new("czech"); | ||
|
||
public static readonly Language Danish = new("danish"); | ||
public static readonly Language Dutch = new("dutch"); | ||
|
||
public static readonly Language Finnish = new("finnish"); | ||
public static readonly Language French = new("french"); | ||
public static readonly Language German = new("german"); | ||
public static readonly Language Greek = new("greek"); | ||
|
||
public static readonly Language Hungarian = new("hungarian"); | ||
public static readonly Language Italian = new("italian"); | ||
public static readonly Language Japanese = new("japanese"); | ||
public static readonly Language Korean = new("koreana"); | ||
public static readonly Language Latam = new("latam"); | ||
|
||
public static readonly Language Norwegian = new("norwegian"); | ||
public static readonly Language Polish = new("polish"); | ||
public static readonly Language Portuguese = new("portuguese"); | ||
public static readonly Language Spanish = new("spanish"); | ||
|
||
public static readonly Language Romanian = new("romanian"); | ||
public static readonly Language Russian = new("russian"); | ||
public static readonly Language Thai = new("thai"); | ||
public static readonly Language Turkish = new("turkish"); | ||
public static readonly Language Swedish = new("swedish"); | ||
public static readonly Language Ukrainian = new("ukrainian"); | ||
public static readonly Language Vietnamese = new("vietnamese"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
namespace SteamPrefill.Models.Enums | ||
{ | ||
public class OperatingSystem : EnumBase<OperatingSystem> | ||
[Intellenum(typeof(string))] | ||
public sealed partial class OperatingSystem | ||
{ | ||
public static readonly OperatingSystem Windows = new OperatingSystem("windows"); | ||
public static readonly OperatingSystem MacOS = new OperatingSystem("macos"); | ||
public static readonly OperatingSystem Linux = new OperatingSystem("linux"); | ||
|
||
private OperatingSystem(string name) : base(name) | ||
{ | ||
} | ||
public static readonly OperatingSystem Windows = new("windows"); | ||
public static readonly OperatingSystem MacOS = new("macos"); | ||
public static readonly OperatingSystem Linux = new("linux"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters