Skip to content

Commit

Permalink
尝试添加字符串辅助类
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Sep 18, 2024
1 parent f5541db commit baa13b2
Show file tree
Hide file tree
Showing 9 changed files with 763 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/Common/Common.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

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}") = "Core", "Core\Core.csproj", "{F1E5BC9E-0822-4012-A91D-E4D483D638CE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfHelp", "WpfHelp\WpfHelp.csproj", "{581B74CB-EC73-41AA-8283-3FC036A6BFEF}"
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
{F1E5BC9E-0822-4012-A91D-E4D483D638CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F1E5BC9E-0822-4012-A91D-E4D483D638CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F1E5BC9E-0822-4012-A91D-E4D483D638CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F1E5BC9E-0822-4012-A91D-E4D483D638CE}.Release|Any CPU.Build.0 = Release|Any CPU
{581B74CB-EC73-41AA-8283-3FC036A6BFEF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{581B74CB-EC73-41AA-8283-3FC036A6BFEF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{581B74CB-EC73-41AA-8283-3FC036A6BFEF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{581B74CB-EC73-41AA-8283-3FC036A6BFEF}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
11 changes: 11 additions & 0 deletions src/Common/Core/Core.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AssemblyName>Lindexi.Src.Core</AssemblyName>
<RootNamespace>Lindexi.Src.Core</RootNamespace>
</PropertyGroup>

</Project>
646 changes: 646 additions & 0 deletions src/Common/Core/Text/ArrayPoolStringBuilder.cs

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/Common/WpfHelp/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Application x:Class="WpfHelp.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:WpfHelp"
StartupUri="MainWindow.xaml">
<Application.Resources>

</Application.Resources>
</Application>
13 changes: 13 additions & 0 deletions src/Common/WpfHelp/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System.Configuration;
using System.Data;
using System.Windows;

namespace WpfHelp;

/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}

10 changes: 10 additions & 0 deletions src/Common/WpfHelp/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Windows;

[assembly:ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
12 changes: 12 additions & 0 deletions src/Common/WpfHelp/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Window x:Class="WpfHelp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfHelp"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>

</Grid>
</Window>
23 changes: 23 additions & 0 deletions src/Common/WpfHelp/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WpfHelp;

/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
11 changes: 11 additions & 0 deletions src/Common/WpfHelp/WpfHelp.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net9.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>true</UseWPF>
</PropertyGroup>

</Project>

0 comments on commit baa13b2

Please sign in to comment.