Add project files

This commit is contained in:
2025-12-09 14:33:11 +01:00
parent 5c2b8691ca
commit c4468ee686
5 changed files with 83 additions and 0 deletions

25
ConsoleApp1.sln Normal file
View File

@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.14.36705.20 d17.14
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{0199A106-1CC7-4407-BE8C-1308445FA97D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0199A106-1CC7-4407-BE8C-1308445FA97D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0199A106-1CC7-4407-BE8C-1308445FA97D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0199A106-1CC7-4407-BE8C-1308445FA97D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0199A106-1CC7-4407-BE8C-1308445FA97D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {95A32CCA-BECB-4410-B525-12A841C71B77}
EndGlobalSection
EndGlobal

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>

15
ConsoleApp1/ISystem.cs Normal file
View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
internal interface ISystem
{
bool Start();
void Restart();
void Quit();
}
}

2
ConsoleApp1/Program.cs Normal file
View File

@@ -0,0 +1,2 @@
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");

31
ConsoleApp1/System.cs Normal file
View File

@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
public class System : ISystem
{
private string name;
private string version;
private string sn;
public System(string name, string version, string sn)
{
this.name = name;
this.version = version;
this.sn = sn;
}
public string Name => this.name;
public string Version => this.version;
public string SN => this.sn;
public override string ToString()
{
return $"Name: {this.name}\nVersion: {this.version}";
}
}
}