feat: ✨ Add Lecture
This commit is contained in:
commit
305d5f569a
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
bin/
|
||||
obj/
|
||||
/packages/
|
||||
riderModule.iml
|
||||
/_ReSharper.Caches/
|
13
.idea/.idea.LectureLinq/.idea/.gitignore
generated
vendored
Normal file
13
.idea/.idea.LectureLinq/.idea/.gitignore
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Rider ignored files
|
||||
/contentModel.xml
|
||||
/.idea.LectureLinq.iml
|
||||
/modules.xml
|
||||
/projectSettingsUpdater.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
4
.idea/.idea.LectureLinq/.idea/encodings.xml
generated
Normal file
4
.idea/.idea.LectureLinq/.idea/encodings.xml
generated
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
|
||||
</project>
|
8
.idea/.idea.LectureLinq/.idea/indexLayout.xml
generated
Normal file
8
.idea/.idea.LectureLinq/.idea/indexLayout.xml
generated
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="UserContentModel">
|
||||
<attachedFolders />
|
||||
<explicitIncludes />
|
||||
<explicitExcludes />
|
||||
</component>
|
||||
</project>
|
6
.idea/.idea.LectureLinq/.idea/vcs.xml
generated
Normal file
6
.idea/.idea.LectureLinq/.idea/vcs.xml
generated
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
16
LectureLinq.sln
Normal file
16
LectureLinq.sln
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LectureLinq", "LectureLinq\LectureLinq.csproj", "{C312AD6D-7757-42CF-9339-8749DE02AF12}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{C312AD6D-7757-42CF-9339-8749DE02AF12}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{C312AD6D-7757-42CF-9339-8749DE02AF12}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{C312AD6D-7757-42CF-9339-8749DE02AF12}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{C312AD6D-7757-42CF-9339-8749DE02AF12}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
10
LectureLinq/LectureLinq.csproj
Normal file
10
LectureLinq/LectureLinq.csproj
Normal file
@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
19
LectureLinq/Program.cs
Normal file
19
LectureLinq/Program.cs
Normal file
@ -0,0 +1,19 @@
|
||||
namespace LectureLinq;
|
||||
|
||||
public static class Program
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
int[] scores = {24, 232, 354, 35, 46, 57, 68, 79, 80, 91, 102, 113, 124, 135, 146, 157, 168, 179, 190, 201, 212, 223, 234, 245, 256, 267, 278, 289, 300};
|
||||
|
||||
var query =
|
||||
from score in scores // Select the data from the collection
|
||||
where score % 2 == 0 && score.ToString().Contains("4") // Filter the data
|
||||
orderby score descending // Order the data in descending order
|
||||
select score; // Select the data to be returned
|
||||
foreach (var i in query)
|
||||
{
|
||||
Console.WriteLine(i);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user