Skip to content

Commit cfe8764

Browse files
Update Example
1 parent 0388e59 commit cfe8764

File tree

7 files changed

+62
-5
lines changed

7 files changed

+62
-5
lines changed

.vs/slnx.sqlite

0 Bytes
Binary file not shown.

Examples/Examples.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Library</OutputType>
5+
<TargetFramework>net8.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
</PropertyGroup>
9+
10+
</Project>

Examples/Examples.sln

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.8.35430.204
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Examples", "Examples.csproj", "{616E0C00-665D-4549-9FFD-14A6FE28C602}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UserCode", "..\UserCode\UserCode.csproj", "{03E39C4B-5B4C-4FD2-A79D-AC86704AF3DC}"
9+
EndProject
10+
Global
11+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12+
Debug|Any CPU = Debug|Any CPU
13+
Release|Any CPU = Release|Any CPU
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{616E0C00-665D-4549-9FFD-14A6FE28C602}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17+
{616E0C00-665D-4549-9FFD-14A6FE28C602}.Debug|Any CPU.Build.0 = Debug|Any CPU
18+
{616E0C00-665D-4549-9FFD-14A6FE28C602}.Release|Any CPU.ActiveCfg = Release|Any CPU
19+
{616E0C00-665D-4549-9FFD-14A6FE28C602}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{03E39C4B-5B4C-4FD2-A79D-AC86704AF3DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{03E39C4B-5B4C-4FD2-A79D-AC86704AF3DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{03E39C4B-5B4C-4FD2-A79D-AC86704AF3DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{03E39C4B-5B4C-4FD2-A79D-AC86704AF3DC}.Release|Any CPU.Build.0 = Release|Any CPU
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
GlobalSection(ExtensibilityGlobals) = postSolution
29+
SolutionGuid = {22B9C537-2B7B-4D6D-B152-E2C4BA31F193}
30+
EndGlobalSection
31+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
public class NotificationService
1+
public class NotificationService()
22
{
3-
public ... CreateNotification(string type)
3+
public ... Get(string type)
44
{
55
if (type == "Email")
66
return new ...();
77
else if (type == "SMS")
88
return new ...();
9-
else if (type == "Push")
10-
return new ...();
9+
//else if (type == "Push")
10+
// return new ...();
11+
1112
else
1213
throw new ArgumentException("Invalid notification type.");
1314
}
14-
}
15+
}
File renamed without changes.

UserCode/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
namespace UserCode;

UserCode/UserCode.csproj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net8.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<ProjectReference Include="..\Examples\Examples.csproj" />
12+
</ItemGroup>
13+
14+
</Project>

0 commit comments

Comments
 (0)