Add project files.
This commit is contained in:
9
DIDemoLib/DIDemoLib.csproj
Normal file
9
DIDemoLib/DIDemoLib.csproj
Normal file
@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
8
DIDemoLib/IMessages.cs
Normal file
8
DIDemoLib/IMessages.cs
Normal file
@ -0,0 +1,8 @@
|
||||
namespace DIDemoLib
|
||||
{
|
||||
public interface IMessages
|
||||
{
|
||||
string SayGoodBye();
|
||||
string SayHello();
|
||||
}
|
||||
}
|
||||
14
DIDemoLib/Messages.cs
Normal file
14
DIDemoLib/Messages.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DIDemoLib
|
||||
{
|
||||
public class Messages : IMessages
|
||||
{
|
||||
public string SayHello() => "Hello Viewer";
|
||||
public string SayGoodBye() => "Goodbye, farewell and good day!";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user