From 5273e3e1419c9e80b538994c08b51d1211dfdaa8 Mon Sep 17 00:00:00 2001 From: Geir Okkenhaug Jerstad Date: Fri, 29 Nov 2024 14:38:05 +0100 Subject: [PATCH] Static --- .../ConsoleApp1/ConsoleApp1.csproj | 10 ++++++++++ Emne 3/EssentialCsharp/ConsoleApp1/Program.cs | 1 + .../StaticogIkkestatic/StaticogIkkestatic.sln | 16 ++++++++++++++++ .../StaticogIkkestatic/Program.cs | 19 +++++++++++++++++++ .../StaticogIkkestatic.csproj | 10 ++++++++++ 5 files changed, 56 insertions(+) create mode 100644 Emne 3/EssentialCsharp/ConsoleApp1/ConsoleApp1.csproj create mode 100644 Emne 3/EssentialCsharp/ConsoleApp1/Program.cs create mode 100644 Emne 3/StaticogIkkestatic/StaticogIkkestatic.sln create mode 100644 Emne 3/StaticogIkkestatic/StaticogIkkestatic/Program.cs create mode 100644 Emne 3/StaticogIkkestatic/StaticogIkkestatic/StaticogIkkestatic.csproj diff --git a/Emne 3/EssentialCsharp/ConsoleApp1/ConsoleApp1.csproj b/Emne 3/EssentialCsharp/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..2f4fc77 --- /dev/null +++ b/Emne 3/EssentialCsharp/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,10 @@ + + + + Exe + net8.0 + enable + enable + + + diff --git a/Emne 3/EssentialCsharp/ConsoleApp1/Program.cs b/Emne 3/EssentialCsharp/ConsoleApp1/Program.cs new file mode 100644 index 0000000..837131c --- /dev/null +++ b/Emne 3/EssentialCsharp/ConsoleApp1/Program.cs @@ -0,0 +1 @@ +Console.WriteLine("Hello, World!"); \ No newline at end of file diff --git a/Emne 3/StaticogIkkestatic/StaticogIkkestatic.sln b/Emne 3/StaticogIkkestatic/StaticogIkkestatic.sln new file mode 100644 index 0000000..6ffb420 --- /dev/null +++ b/Emne 3/StaticogIkkestatic/StaticogIkkestatic.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StaticogIkkestatic", "StaticogIkkestatic\StaticogIkkestatic.csproj", "{DAE6A06C-254F-4390-A8B1-648D908E01A5}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {DAE6A06C-254F-4390-A8B1-648D908E01A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DAE6A06C-254F-4390-A8B1-648D908E01A5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DAE6A06C-254F-4390-A8B1-648D908E01A5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DAE6A06C-254F-4390-A8B1-648D908E01A5}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/Emne 3/StaticogIkkestatic/StaticogIkkestatic/Program.cs b/Emne 3/StaticogIkkestatic/StaticogIkkestatic/Program.cs new file mode 100644 index 0000000..59e73ae --- /dev/null +++ b/Emne 3/StaticogIkkestatic/StaticogIkkestatic/Program.cs @@ -0,0 +1,19 @@ +namespace StaticogIkkestatic +{ + class Program + { + static void Main(string[] args) + { + ShowSeperatorRow(); + Console.WriteLine("Navn: Stavern"); + Console.WriteLine("Kommune: Larvik"); + Console.WriteLine("Fylke: Vestfold"); + ShowSeperatorRow(); + } + static void ShowSeperatorRow() + { + Console.WriteLine("****************************"); + } + } +} + diff --git a/Emne 3/StaticogIkkestatic/StaticogIkkestatic/StaticogIkkestatic.csproj b/Emne 3/StaticogIkkestatic/StaticogIkkestatic/StaticogIkkestatic.csproj new file mode 100644 index 0000000..2f4fc77 --- /dev/null +++ b/Emne 3/StaticogIkkestatic/StaticogIkkestatic/StaticogIkkestatic.csproj @@ -0,0 +1,10 @@ + + + + Exe + net8.0 + enable + enable + + +