Skip to content

Commit bf64f76

Browse files
committed
TextReplacementShared
1 parent 00a1e81 commit bf64f76

38 files changed

+835
-2329
lines changed

TextReplacement.sln

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# 17
3+
VisualStudioVersion = 17.9.34714.143
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D0CBCAD4-B7D5-41FA-9B13-E3446E1D7A53}"
6+
ProjectSection(SolutionItems) = preProject
7+
README.md = README.md
8+
EndProjectSection
9+
EndProject
10+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TextReplacementApp", "TextReplacementApp\TextReplacementApp.csproj", "{A4F06817-13B0-4937-ADE2-C34F8038BCD1}"
11+
EndProject
12+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TextReplacementConsoleApp", "TextReplacementConsoleApp\TextReplacementConsoleApp.csproj", "{69A9ABD0-BED3-4370-9CBF-55F6DF36CDD7}"
13+
EndProject
14+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TextReplacementShared", "TextReplacementShared\TextReplacementShared.csproj", "{94CD1765-7876-4928-8B37-87300FFA66E2}"
15+
EndProject
16+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TextReplacementConsoleDemos", "TextReplacementConsoleDemos\TextReplacementConsoleDemos.csproj", "{F7B2007A-EB8E-4205-84B9-5D96A7F5119E}"
17+
EndProject
18+
Global
19+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
20+
Debug|Any CPU = Debug|Any CPU
21+
Release|Any CPU = Release|Any CPU
22+
EndGlobalSection
23+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
24+
{A4F06817-13B0-4937-ADE2-C34F8038BCD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
25+
{A4F06817-13B0-4937-ADE2-C34F8038BCD1}.Debug|Any CPU.Build.0 = Debug|Any CPU
26+
{A4F06817-13B0-4937-ADE2-C34F8038BCD1}.Release|Any CPU.ActiveCfg = Release|Any CPU
27+
{A4F06817-13B0-4937-ADE2-C34F8038BCD1}.Release|Any CPU.Build.0 = Release|Any CPU
28+
{69A9ABD0-BED3-4370-9CBF-55F6DF36CDD7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
29+
{69A9ABD0-BED3-4370-9CBF-55F6DF36CDD7}.Debug|Any CPU.Build.0 = Debug|Any CPU
30+
{69A9ABD0-BED3-4370-9CBF-55F6DF36CDD7}.Release|Any CPU.ActiveCfg = Release|Any CPU
31+
{69A9ABD0-BED3-4370-9CBF-55F6DF36CDD7}.Release|Any CPU.Build.0 = Release|Any CPU
32+
{94CD1765-7876-4928-8B37-87300FFA66E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33+
{94CD1765-7876-4928-8B37-87300FFA66E2}.Debug|Any CPU.Build.0 = Debug|Any CPU
34+
{94CD1765-7876-4928-8B37-87300FFA66E2}.Release|Any CPU.ActiveCfg = Release|Any CPU
35+
{94CD1765-7876-4928-8B37-87300FFA66E2}.Release|Any CPU.Build.0 = Release|Any CPU
36+
{F7B2007A-EB8E-4205-84B9-5D96A7F5119E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
37+
{F7B2007A-EB8E-4205-84B9-5D96A7F5119E}.Debug|Any CPU.Build.0 = Debug|Any CPU
38+
{F7B2007A-EB8E-4205-84B9-5D96A7F5119E}.Release|Any CPU.ActiveCfg = Release|Any CPU
39+
{F7B2007A-EB8E-4205-84B9-5D96A7F5119E}.Release|Any CPU.Build.0 = Release|Any CPU
40+
EndGlobalSection
41+
GlobalSection(SolutionProperties) = preSolution
42+
HideSolutionNode = FALSE
43+
EndGlobalSection
44+
GlobalSection(ExtensibilityGlobals) = postSolution
45+
SolutionGuid = {72FFA8BA-53B0-4F29-A6D3-96DE7FF8EDFA}
46+
EndGlobalSection
47+
EndGlobal

TextReplacementApp.sln

Lines changed: 0 additions & 146 deletions
This file was deleted.

TextReplacementApp/App.config

Lines changed: 0 additions & 14 deletions
This file was deleted.

TextReplacementApp/AppConfig.cs

Lines changed: 17 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,21 @@
1-
using Newtonsoft.Json;
1+
namespace TextReplacementApp;
22

3-
namespace TextReplacementApp
3+
/// <summary>Represents the configuration settings of the application.</summary>
4+
/// <remarks>
5+
/// This class encapsulates the configuration settings of the application,
6+
/// including the directory path, search text, and replace text.
7+
/// </remarks>
8+
public class AppConfig
49
{
5-
/// <summary>
6-
/// Represents the configuration settings of the application.
7-
/// </summary>
8-
/// <remarks>
9-
/// This class encapsulates the configuration settings of the application,
10-
/// including the directory path, search text, and replace text.
11-
/// </remarks>
12-
public class AppConfig
13-
{
14-
/// <summary>
15-
/// Gets or sets the directory path stored in the configuration.
16-
/// </summary>
17-
/// <value>
18-
/// A <see cref="T:System.String" /> representing the directory path.
19-
/// </value>
20-
[JsonProperty("directory_path")]
21-
public string DirectoryPath { get; set; }
10+
/// <summary>Gets or sets the directory path stored in the configuration.</summary>
11+
/// <value>A <see cref="string"/> representing the directory path.</value>
12+
[JsonPropertyName("directoryPath")] public string DirectoryPath { get; set; } = string.Empty;
2213

23-
/// <summary>
24-
/// Gets or sets the replace text stored in the configuration.
25-
/// </summary>
26-
/// <value>
27-
/// A <see cref="T:System.String" /> representing the replace text.
28-
/// </value>
29-
[JsonProperty("replace_with")]
30-
public string ReplaceWith { get; set; }
14+
/// <summary>Gets or sets the search text stored in the configuration.</summary>
15+
/// <value>A <see cref="string"/> representing the search text.</value>
16+
[JsonPropertyName("findWhat")] public string FindWhat { get; set; } = string.Empty;
3117

32-
/// <summary>
33-
/// Gets or sets the search text stored in the configuration.
34-
/// </summary>
35-
/// <value>
36-
/// A <see cref="T:System.String" /> representing the search text.
37-
/// </value>
38-
[JsonProperty("find_what")]
39-
public string FindWhat { get; set; }
40-
}
41-
}
18+
/// <summary>Gets or sets the replace text stored in the configuration.</summary>
19+
/// <value>A <see cref="string"/> representing the replace text.</value>
20+
[JsonPropertyName("replaceWith")] public string ReplaceWith { get; set; } = string.Empty;
21+
}

TextReplacementApp/FileFailureInfo.cs

Lines changed: 0 additions & 33 deletions
This file was deleted.

TextReplacementApp/ListExtensions.cs

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)