Skip to content

Commit 0245566

Browse files
committed
Ran ReSharper code cleanup
1 parent 8874360 commit 0245566

File tree

263 files changed

+18026
-22212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

263 files changed

+18026
-22212
lines changed

.build/docfx.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
{
44
"src": [
55
{
6-
"files": [ "Advanced.Algorithms.Docs.sln"],
7-
"src": "../src/"
6+
"files": ["Advanced.Algorithms.Docs.sln"],
7+
"src": "../src/"
88
}
99
],
1010
"dest": "obj/api"
@@ -13,17 +13,17 @@
1313
"build": {
1414
"content": [
1515
{
16-
"files": [ "**/*.yml" ],
16+
"files": ["**/*.yml"],
1717
"src": "obj/api",
1818
"dest": "api"
1919
},
2020
{
21-
"files": [ "*.md" ]
21+
"files": ["*.md"]
2222
}
2323
],
2424
"resource": [
2525
{
26-
"files": [ ""]
26+
"files": [""]
2727
}
2828
],
2929
"overwrite": "specs/*.md",
@@ -32,6 +32,6 @@
3232
"_enableSearch": true
3333
},
3434
"dest": "../docs",
35-
"xrefService": [ "https://xref.docs.microsoft.com/query?uid={uid}" ]
35+
"xrefService": ["https://xref.docs.microsoft.com/query?uid={uid}"]
3636
}
37-
}
37+
}

.nuget/NuGet.Config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22

33
<configuration>
4-
<solution>
5-
<add key="disableSourceControlIntegration" value="true" />
6-
</solution>
4+
<solution>
5+
<add key="disableSourceControlIntegration" value="true" />
6+
</solution>
77
</configuration>

.nuget/NuGet.targets

Lines changed: 121 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -1,129 +1,134 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
23
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<PropertyGroup>
4-
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
4+
<PropertyGroup>
5+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
56

6-
<!-- Enable the restore command to run before builds -->
7-
<RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>
7+
<!-- Enable the restore command to run before builds -->
8+
<RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>
89

9-
<!-- Property that enables building a package from a project -->
10-
<BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
10+
<!-- Property that enables building a package from a project -->
11+
<BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
1112

12-
<!-- Determines if package restore consent is required to restore packages -->
13-
<RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">true</RequireRestoreConsent>
13+
<!-- Determines if package restore consent is required to restore packages -->
14+
<RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">true</RequireRestoreConsent>
1415

15-
<!-- Download NuGet.exe if it does not already exist -->
16-
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false</DownloadNuGetExe>
17-
</PropertyGroup>
16+
<!-- Download NuGet.exe if it does not already exist -->
17+
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false</DownloadNuGetExe>
18+
</PropertyGroup>
1819

19-
<ItemGroup Condition=" '$(PackageSources)' == '' ">
20-
<!-- Package sources used to restore packages. By default, registered sources under %APPDATA%\NuGet\NuGet.Config will be used -->
21-
<!-- The official NuGet package source (https://www.nuget.org/api/v2/) will be excluded if package sources are specified and it does not appear in the list -->
22-
<!--
20+
<ItemGroup Condition=" '$(PackageSources)' == '' ">
21+
<!-- Package sources used to restore packages. By default, registered sources under %APPDATA%\NuGet\NuGet.Config will be used -->
22+
<!-- The official NuGet package source (https://www.nuget.org/api/v2/) will be excluded if package sources are specified and it does not appear in the list -->
23+
<!--
2324
<PackageSource Include="https://www.nuget.org/api/v2/" />
2425
<PackageSource Include="https://my-nuget-source/nuget/" />
2526
-->
26-
</ItemGroup>
27-
28-
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
29-
<!-- Windows specific commands -->
30-
<NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
31-
</PropertyGroup>
32-
33-
<PropertyGroup Condition=" '$(OS)' != 'Windows_NT'">
34-
<!-- We need to launch nuget.exe with the mono command if we're not on windows -->
35-
<NuGetToolsPath>$(SolutionDir).nuget</NuGetToolsPath>
36-
</PropertyGroup>
37-
38-
<PropertyGroup>
39-
<PackagesProjectConfig Condition=" '$(OS)' == 'Windows_NT'">$(MSBuildProjectDirectory)\packages.$(MSBuildProjectName.Replace(' ', '_')).config</PackagesProjectConfig>
40-
<PackagesProjectConfig Condition=" '$(OS)' != 'Windows_NT'">$(MSBuildProjectDirectory)\packages.$(MSBuildProjectName).config</PackagesProjectConfig>
41-
</PropertyGroup>
42-
43-
<PropertyGroup>
44-
<PackagesConfig Condition="Exists('$(MSBuildProjectDirectory)\packages.config')">$(MSBuildProjectDirectory)\packages.config</PackagesConfig>
45-
<PackagesConfig Condition="Exists('$(PackagesProjectConfig)')">$(PackagesProjectConfig)</PackagesConfig>
46-
</PropertyGroup>
47-
48-
<PropertyGroup>
49-
<!-- NuGet command -->
50-
<NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\NuGet.exe</NuGetExePath>
51-
<PackageSources Condition=" $(PackageSources) == '' ">@(PackageSource)</PackageSources>
52-
53-
<NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
54-
<NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 "$(NuGetExePath)"</NuGetCommand>
55-
56-
<PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
57-
58-
<RequireConsentSwitch Condition=" $(RequireRestoreConsent) == 'true' ">-RequireConsent</RequireConsentSwitch>
59-
<NonInteractiveSwitch Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' ">-NonInteractive</NonInteractiveSwitch>
60-
61-
<PaddedSolutionDir Condition=" '$(OS)' == 'Windows_NT'">"$(SolutionDir) "</PaddedSolutionDir>
62-
<PaddedSolutionDir Condition=" '$(OS)' != 'Windows_NT' ">"$(SolutionDir)"</PaddedSolutionDir>
63-
64-
<!-- Commands -->
65-
<RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(NonInteractiveSwitch) $(RequireConsentSwitch) -solutionDir $(PaddedSolutionDir)</RestoreCommand>
66-
<BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -Properties "Configuration=$(Configuration);Platform=$(Platform)" $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols</BuildCommand>
67-
68-
<!-- We need to ensure packages are restored prior to assembly resolve -->
69-
<BuildDependsOn Condition="$(RestorePackages) == 'true'">
70-
RestorePackages;
71-
$(BuildDependsOn);
72-
</BuildDependsOn>
73-
74-
<!-- Make the build depend on restore packages -->
75-
<BuildDependsOn Condition="$(BuildPackage) == 'true'">
76-
$(BuildDependsOn);
77-
BuildPackage;
78-
</BuildDependsOn>
79-
</PropertyGroup>
80-
81-
<Target Name="CheckPrerequisites">
82-
<!-- Raise an error if we're unable to locate nuget.exe -->
83-
<Error Condition="'$(DownloadNuGetExe)' != 'true' AND !Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
84-
<!--
27+
</ItemGroup>
28+
29+
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
30+
<!-- Windows specific commands -->
31+
<NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
32+
</PropertyGroup>
33+
34+
<PropertyGroup Condition=" '$(OS)' != 'Windows_NT'">
35+
<!-- We need to launch nuget.exe with the mono command if we're not on windows -->
36+
<NuGetToolsPath>$(SolutionDir).nuget</NuGetToolsPath>
37+
</PropertyGroup>
38+
39+
<PropertyGroup>
40+
<PackagesProjectConfig Condition=" '$(OS)' == 'Windows_NT'">$(MSBuildProjectDirectory)\packages.$(MSBuildProjectName.Replace(' ', '_')).config</PackagesProjectConfig>
41+
<PackagesProjectConfig Condition=" '$(OS)' != 'Windows_NT'">$(MSBuildProjectDirectory)\packages.$(MSBuildProjectName).config</PackagesProjectConfig>
42+
</PropertyGroup>
43+
44+
<PropertyGroup>
45+
<PackagesConfig Condition="Exists('$(MSBuildProjectDirectory)\packages.config')">$(MSBuildProjectDirectory)\packages.config</PackagesConfig>
46+
<PackagesConfig Condition="Exists('$(PackagesProjectConfig)')">$(PackagesProjectConfig)</PackagesConfig>
47+
</PropertyGroup>
48+
49+
<PropertyGroup>
50+
<!-- NuGet command -->
51+
<NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\NuGet.exe</NuGetExePath>
52+
<PackageSources Condition=" $(PackageSources) == '' ">@(PackageSource)</PackageSources>
53+
54+
<NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
55+
<NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 "$(NuGetExePath)"</NuGetCommand>
56+
57+
<PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
58+
59+
<RequireConsentSwitch Condition=" $(RequireRestoreConsent) == 'true' ">-RequireConsent</RequireConsentSwitch>
60+
<NonInteractiveSwitch Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' ">-NonInteractive</NonInteractiveSwitch>
61+
62+
<PaddedSolutionDir Condition=" '$(OS)' == 'Windows_NT'">"$(SolutionDir) "</PaddedSolutionDir>
63+
<PaddedSolutionDir Condition=" '$(OS)' != 'Windows_NT' ">"$(SolutionDir)"</PaddedSolutionDir>
64+
65+
<!-- Commands -->
66+
<RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(NonInteractiveSwitch) $(RequireConsentSwitch) -solutionDir $(PaddedSolutionDir)</RestoreCommand>
67+
<BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -Properties "Configuration=$(Configuration);Platform=$(Platform)" $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols</BuildCommand>
68+
69+
<!-- We need to ensure packages are restored prior to assembly resolve -->
70+
<BuildDependsOn Condition="$(RestorePackages) == 'true'">
71+
RestorePackages;
72+
$(BuildDependsOn);
73+
</BuildDependsOn>
74+
75+
<!-- Make the build depend on restore packages -->
76+
<BuildDependsOn Condition="$(BuildPackage) == 'true'">
77+
$(BuildDependsOn);
78+
BuildPackage;
79+
</BuildDependsOn>
80+
</PropertyGroup>
81+
82+
<Target Name="CheckPrerequisites">
83+
<!-- Raise an error if we're unable to locate nuget.exe -->
84+
<Error Condition="'$(DownloadNuGetExe)' != 'true' AND !Exists('$(NuGetExePath)')"
85+
Text="Unable to locate '$(NuGetExePath)'" />
86+
<!--
8587
Take advantage of MsBuild's build dependency tracking to make sure that we only ever download nuget.exe once.
8688
This effectively acts as a lock that makes sure that the download operation will only happen once and all
8789
parallel builds will have to wait for it to complete.
8890
-->
89-
<MsBuild Targets="_DownloadNuGet" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT;DownloadNuGetExe=$(DownloadNuGetExe)" />
90-
</Target>
91-
92-
<Target Name="_DownloadNuGet">
93-
<DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
94-
</Target>
95-
96-
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
97-
<Exec Command="$(RestoreCommand)"
98-
Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
99-
100-
<Exec Command="$(RestoreCommand)"
101-
LogStandardErrorAsError="true"
102-
Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
103-
</Target>
104-
105-
<Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
106-
<Exec Command="$(BuildCommand)"
107-
Condition=" '$(OS)' != 'Windows_NT' " />
108-
109-
<Exec Command="$(BuildCommand)"
110-
LogStandardErrorAsError="true"
111-
Condition=" '$(OS)' == 'Windows_NT' " />
112-
</Target>
113-
114-
<UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
115-
<ParameterGroup>
116-
<OutputFilename ParameterType="System.String" Required="true" />
117-
</ParameterGroup>
118-
<Task>
119-
<Reference Include="System.Core" />
120-
<Using Namespace="System" />
121-
<Using Namespace="System.IO" />
122-
<Using Namespace="System.Net" />
123-
<Using Namespace="Microsoft.Build.Framework" />
124-
<Using Namespace="Microsoft.Build.Utilities" />
125-
<Code Type="Fragment" Language="cs">
126-
<![CDATA[
91+
<MsBuild Targets="_DownloadNuGet" Projects="$(MSBuildThisFileFullPath)"
92+
Properties="Configuration=NOT_IMPORTANT;DownloadNuGetExe=$(DownloadNuGetExe)" />
93+
</Target>
94+
95+
<Target Name="_DownloadNuGet">
96+
<DownloadNuGet OutputFilename="$(NuGetExePath)"
97+
Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
98+
</Target>
99+
100+
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
101+
<Exec Command="$(RestoreCommand)"
102+
Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
103+
104+
<Exec Command="$(RestoreCommand)"
105+
LogStandardErrorAsError="true"
106+
Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
107+
</Target>
108+
109+
<Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
110+
<Exec Command="$(BuildCommand)"
111+
Condition=" '$(OS)' != 'Windows_NT' " />
112+
113+
<Exec Command="$(BuildCommand)"
114+
LogStandardErrorAsError="true"
115+
Condition=" '$(OS)' == 'Windows_NT' " />
116+
</Target>
117+
118+
<UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory"
119+
AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
120+
<ParameterGroup>
121+
<OutputFilename ParameterType="System.String" Required="true" />
122+
</ParameterGroup>
123+
<Task>
124+
<Reference Include="System.Core" />
125+
<Using Namespace="System" />
126+
<Using Namespace="System.IO" />
127+
<Using Namespace="System.Net" />
128+
<Using Namespace="Microsoft.Build.Framework" />
129+
<Using Namespace="Microsoft.Build.Utilities" />
130+
<Code Type="Fragment" Language="cs">
131+
<![CDATA[
127132
try {
128133
OutputFilename = Path.GetFullPath(OutputFilename);
129134
@@ -138,7 +143,7 @@
138143
return false;
139144
}
140145
]]>
141-
</Code>
142-
</Task>
143-
</UsingTask>
144-
</Project>
146+
</Code>
147+
</Task>
148+
</UsingTask>
149+
</Project>
Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
<?xml version="1.0"?>
2-
<package >
3-
<metadata>
4-
<id>Advanced.Algorithms</id>
5-
<version>$version$</version>
6-
<title>Advanced Algorithms</title>
7-
<authors>Advanced Algorithms GitHub contributors</authors>
8-
<owners>justcoding121</owners>
9-
<licenseUrl>https://github.com/justcoding121/Advanced-Algorithms/blob/develop/LICENSE</licenseUrl>
10-
<projectUrl>https://github.com/justcoding121/Advanced-Algorithms</projectUrl>
11-
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12-
<description>100+ algorithms and datastructures.</description>
13-
<releaseNotes></releaseNotes>
14-
<copyright>Copyright &#x00A9; justcoding121. All rights reserved.</copyright>
15-
<tags></tags>
16-
<dependencies>
17-
<dependency id="System.ValueTuple" version="4.5.0" />
18-
</dependencies>
19-
</metadata>
20-
<files>
21-
<file src="bin\$configuration$\net451\Advanced.Algorithms.dll" target="lib\net451" />
22-
<file src="bin\$configuration$\netstandard1.0\Advanced.Algorithms.dll" target="lib\netstandard1.0" />
23-
</files>
24-
</package>
2+
3+
<package>
4+
<metadata>
5+
<id>Advanced.Algorithms</id>
6+
<version>$version$</version>
7+
<title>Advanced Algorithms</title>
8+
<authors>Advanced Algorithms GitHub contributors</authors>
9+
<owners>justcoding121</owners>
10+
<licenseUrl>https://github.com/justcoding121/Advanced-Algorithms/blob/develop/LICENSE</licenseUrl>
11+
<projectUrl>https://github.com/justcoding121/Advanced-Algorithms</projectUrl>
12+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
13+
<description>100+ algorithms and datastructures.</description>
14+
<releaseNotes></releaseNotes>
15+
<copyright>Copyright &#x00A9; justcoding121. All rights reserved.</copyright>
16+
<tags></tags>
17+
<dependencies>
18+
<dependency id="System.ValueTuple" version="4.5.0" />
19+
</dependencies>
20+
</metadata>
21+
<files>
22+
<file src="bin\$configuration$\net451\Advanced.Algorithms.dll" target="lib\net451" />
23+
<file src="bin\$configuration$\netstandard1.0\Advanced.Algorithms.dll" target="lib\netstandard1.0" />
24+
</files>
25+
</package>

src/Advanced.Algorithms/App.config

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version="1.0" encoding="utf-8"?>
2+
23
<configuration>
3-
<startup>
4-
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
5-
</startup>
4+
<startup>
5+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
6+
</startup>
67
</configuration>

0 commit comments

Comments
 (0)