초기 커밋.

This commit is contained in:
2025-03-05 10:21:10 +09:00
parent 3471914e64
commit 15885a2286
55 changed files with 1716 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
+76
View File
@@ -0,0 +1,76 @@
#define TEST_ENV
#define STANDARD_EDITION
#define ENTERPRISE_EDITION
#if (!ENTERPRISE_EDITION)
#warning This class should be used in Enterprise Edition
#elif (!STANDARD_EDITION)
#error .
#else
class EnterpriseClass
{
}
#endif
internal class Program
{
private static void Main(string[] args)
{
bool verbose = false;
// ...
#if (TEST_ENV)
Console.WriteLine("Test Environment: Verbose option is set.");
verbose = true;
#else
Console.WriteLine("Production");
#endif
if (verbose)
{
//....
}
}
}
class ClassA
{
#region Public Methods
public void Run() { }
public void Create() { }
#endregion
#region Public Properties
public int Id { get; set; }
#endregion
#region Privates
private void Execute() { }
#endregion
}
#pragma warning disable 3021
namespace App1
{
[System.CLSCompliant(false)]
class Program
{
static void Main(string[] args)
{
//...
#pragma warning disable
if (false)
{
Console.WriteLine("TBD");
}
#pragma warning restore
//...
}
}
}