vault backup: 2024-12-04 21:19:22

This commit is contained in:
2024-12-04 21:19:22 +03:30
parent 11c541fe65
commit 37b5d21676
293 changed files with 83077 additions and 462 deletions
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OOP
{
public class EmailSender : ISender
{
public void Send(string to)
{
Console.WriteLine("Sent Mail by Email");
}
public void Hi()
{
}
}
}
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OOP
{
public interface ISender
{
void Send(string to);
}
}
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
+19
View File
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OOP
{
public class Person
{
public string Name { get; set; }
public int Age { get; set; }
protected int a;
public virtual string Introduce()
{
return "Hi, I'm " + Name;
}
}
}
@@ -0,0 +1,17 @@
using OOP;
User user = new User();
Console.WriteLine(user.Introduce());
ISender sender = new EmailSender();
ISender sender2 = new SMSSender();
//SMS
user.SendMessageToSomeone("H", new SMSSender());
//Email
user.SendMessageToSomeone("H", new EmailSender());
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OOP
{
public class SMSSender : ISender
{
public void Send(string to)
{
Console.WriteLine("Sent Mail by SMS");
}
}
}
+24
View File
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OOP
{
public class User : Person
{
public void SendMessageToSomeone(string to, ISender sender)
{
sender.Send(to);
}
public override string Introduce()
{
return "Hi, I'm " + Name + ". I am a user";
}
}
}
@@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"OOP/1.0.0": {
"runtime": {
"OOP.dll": {}
}
}
}
},
"libraries": {
"OOP/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}
@@ -0,0 +1,9 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
}
}
}
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("OOP")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("OOP")]
[assembly: System.Reflection.AssemblyTitleAttribute("OOP")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.
@@ -0,0 +1 @@
c95c3e42119661bbdbb649aa3692c0cfd8c3ae3b
@@ -0,0 +1,11 @@
is_global = true
build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = OOP
build_property.ProjectDir = E:\TheOrder\ASP.NET\ASP.NET\Repo\Sessions\Session05\Projects\OOP\
@@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;
@@ -0,0 +1 @@
3afb680a6ab3901c5695904540a36783270025c6
@@ -0,0 +1,14 @@
E:\TheOrder\ASP.NET\ASP.NET\Repo\Sessions\Session05\Projects\OOP\bin\Debug\net6.0\OOP.exe
E:\TheOrder\ASP.NET\ASP.NET\Repo\Sessions\Session05\Projects\OOP\bin\Debug\net6.0\OOP.deps.json
E:\TheOrder\ASP.NET\ASP.NET\Repo\Sessions\Session05\Projects\OOP\bin\Debug\net6.0\OOP.runtimeconfig.json
E:\TheOrder\ASP.NET\ASP.NET\Repo\Sessions\Session05\Projects\OOP\bin\Debug\net6.0\OOP.dll
E:\TheOrder\ASP.NET\ASP.NET\Repo\Sessions\Session05\Projects\OOP\bin\Debug\net6.0\OOP.pdb
E:\TheOrder\ASP.NET\ASP.NET\Repo\Sessions\Session05\Projects\OOP\obj\Debug\net6.0\OOP.GeneratedMSBuildEditorConfig.editorconfig
E:\TheOrder\ASP.NET\ASP.NET\Repo\Sessions\Session05\Projects\OOP\obj\Debug\net6.0\OOP.AssemblyInfoInputs.cache
E:\TheOrder\ASP.NET\ASP.NET\Repo\Sessions\Session05\Projects\OOP\obj\Debug\net6.0\OOP.AssemblyInfo.cs
E:\TheOrder\ASP.NET\ASP.NET\Repo\Sessions\Session05\Projects\OOP\obj\Debug\net6.0\OOP.csproj.CoreCompileInputs.cache
E:\TheOrder\ASP.NET\ASP.NET\Repo\Sessions\Session05\Projects\OOP\obj\Debug\net6.0\OOP.dll
E:\TheOrder\ASP.NET\ASP.NET\Repo\Sessions\Session05\Projects\OOP\obj\Debug\net6.0\refint\OOP.dll
E:\TheOrder\ASP.NET\ASP.NET\Repo\Sessions\Session05\Projects\OOP\obj\Debug\net6.0\OOP.pdb
E:\TheOrder\ASP.NET\ASP.NET\Repo\Sessions\Session05\Projects\OOP\obj\Debug\net6.0\OOP.genruntimeconfig.cache
E:\TheOrder\ASP.NET\ASP.NET\Repo\Sessions\Session05\Projects\OOP\obj\Debug\net6.0\ref\OOP.dll
@@ -0,0 +1 @@
a376bf2c66c162b2dfb8bd931fe624ceaa5129de
@@ -0,0 +1,68 @@
{
"format": 1,
"restore": {
"E:\\TheOrder\\ASP.NET\\ASP.NET\\Repo\\Sessions\\Session05\\Projects\\OOP\\OOP.csproj": {}
},
"projects": {
"E:\\TheOrder\\ASP.NET\\ASP.NET\\Repo\\Sessions\\Session05\\Projects\\OOP\\OOP.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "E:\\TheOrder\\ASP.NET\\ASP.NET\\Repo\\Sessions\\Session05\\Projects\\OOP\\OOP.csproj",
"projectName": "OOP",
"projectPath": "E:\\TheOrder\\ASP.NET\\ASP.NET\\Repo\\Sessions\\Session05\\Projects\\OOP\\OOP.csproj",
"packagesPath": "C:\\Users\\LENOVO\\.nuget\\packages\\",
"outputPath": "E:\\TheOrder\\ASP.NET\\ASP.NET\\Repo\\Sessions\\Session05\\Projects\\OOP\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\LENOVO\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"C:\\Program Files\\dotnet\\library-packs": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.402\\RuntimeIdentifierGraph.json"
}
}
}
}
}
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\LENOVO\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.7.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\LENOVO\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
@@ -0,0 +1,74 @@
{
"version": 3,
"targets": {
"net6.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net6.0": []
},
"packageFolders": {
"C:\\Users\\LENOVO\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "E:\\TheOrder\\ASP.NET\\ASP.NET\\Repo\\Sessions\\Session05\\Projects\\OOP\\OOP.csproj",
"projectName": "OOP",
"projectPath": "E:\\TheOrder\\ASP.NET\\ASP.NET\\Repo\\Sessions\\Session05\\Projects\\OOP\\OOP.csproj",
"packagesPath": "C:\\Users\\LENOVO\\.nuget\\packages\\",
"outputPath": "E:\\TheOrder\\ASP.NET\\ASP.NET\\Repo\\Sessions\\Session05\\Projects\\OOP\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\LENOVO\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"C:\\Program Files\\dotnet\\library-packs": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.402\\RuntimeIdentifierGraph.json"
}
}
}
}
@@ -0,0 +1,8 @@
{
"version": 2,
"dgSpecHash": "Ng2kmWO5r+Tup6dDoYkkrsW685EWmmBSenpI+SBZrBBylv96RRkyX0V7IGZ59zJIpHbr5LHcEY6G5p/5Am2Qqw==",
"success": true,
"projectFilePath": "E:\\TheOrder\\ASP.NET\\ASP.NET\\Repo\\Sessions\\Session05\\Projects\\OOP\\OOP.csproj",
"expectedPackageFiles": [],
"logs": []
}