Skip to content

Commit

Permalink
Separate classes
Browse files Browse the repository at this point in the history
  • Loading branch information
cvpfus committed Sep 8, 2023
1 parent cfac6a3 commit 37b2d91
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
10 changes: 10 additions & 0 deletions W1 D4/TypeManipulation/Number.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace TypeManipulation;

public class Number
{
public int number;
public Number(int x)
{
number = x;
}
}
12 changes: 2 additions & 10 deletions W1 D4/TypeManipulation/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
public class Program
using TypeManipulation;
public class Program
{
static void Main()
{
Expand Down Expand Up @@ -26,13 +27,4 @@ static void Main()
Console.WriteLine(text1);
Console.WriteLine(text2);
}
}

public class Number
{
public int number;
public Number(int x)
{
number = x;
}
}
4 changes: 1 addition & 3 deletions W1 D4/TypeManipulation/TypeManipulation.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
</Project>

0 comments on commit 37b2d91

Please sign in to comment.