Archived
1
0
This commit is contained in:
2025-11-15 20:25:57 +08:00
Unverified
parent 5478d0ed37
commit bb4a37acc4
99 changed files with 4315 additions and 16 deletions
+11
View File
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>_15_5</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
+25
View File
@@ -0,0 +1,25 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.14.36623.8 d17.14
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "15_5", "15_5.csproj", "{79BC6493-706C-4DCF-A78E-30B0D2CB1FA8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{79BC6493-706C-4DCF-A78E-30B0D2CB1FA8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{79BC6493-706C-4DCF-A78E-30B0D2CB1FA8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{79BC6493-706C-4DCF-A78E-30B0D2CB1FA8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{79BC6493-706C-4DCF-A78E-30B0D2CB1FA8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {908C2BE7-032B-4A3E-BCBD-721A5B8AF689}
EndGlobalSection
EndGlobal
+19
View File
@@ -0,0 +1,19 @@
using System;
using System.Text;
namespace _15_5
{
internal class Program
{
static void Main(string[] args)
{
StringBuilder sb = new StringBuilder("ABC", 50);
sb.Append(new char[] { 'D', 'F', 'E' });
sb.AppendFormat("GHI{0}{1}", 'J', 'k');
Console.WriteLine("{0} chars,内容为{1}", sb.Length, sb.ToString());
sb.Insert(0, "Alphabet---");
sb.Replace('k', 'K');
Console.WriteLine("{0} chars,内容为{1}", sb.Length, sb.ToString());
}
}
}