Skip to content

Commit

Permalink
Merge commit '5652924a8fd5f3a9ea5032d8841ba25e60c8354a'
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Sep 10, 2024
2 parents c1bc3aa + 5652924 commit 68cab09
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Workbench/DohefurweBigurqice/DohefurweBigurqice.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

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

</Project>
22 changes: 22 additions & 0 deletions Workbench/DohefurweBigurqice/DohefurweBigurqice.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DohefurweBigurqice", "DohefurweBigurqice.csproj", "{EAA2C713-0E0C-48D5-A9FF-40BFC75663C9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{EAA2C713-0E0C-48D5-A9FF-40BFC75663C9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EAA2C713-0E0C-48D5-A9FF-40BFC75663C9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EAA2C713-0E0C-48D5-A9FF-40BFC75663C9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EAA2C713-0E0C-48D5-A9FF-40BFC75663C9}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
25 changes: 25 additions & 0 deletions Workbench/DohefurweBigurqice/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// See https://aka.ms/new-console-template for more information

var list = new List<Foo>();

for (int i = 0; i < 10; i++)
{
list.Add(new Foo());
}

Foo? foo = list.Cast<Foo?>().FirstOrDefault(t => t.Value.N == -1, null);

Console.WriteLine("Hello, World!");


struct Foo
{
public Foo()
{
_count++;
N = _count;
}
public int N { get; }

private static int _count = 0;
}

0 comments on commit 68cab09

Please sign in to comment.