This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 17
17
</PropertyGroup >
18
18
<ItemGroup >
19
19
<PackageReference Include =" System.Memory" Version =" 4.5.3" />
20
+ <PackageReference Include =" Microsoft.CSharp" Version =" 4.5.0" />
20
21
</ItemGroup >
21
22
<ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0' " >
22
23
<PackageReference Include =" System.Runtime" Version =" 4.3.1" />
23
- <PackageReference Include =" Microsoft.CSharp" Version =" 4.5.0" />
24
24
</ItemGroup >
25
25
<ItemGroup Condition =" '$(TargetFramework)' == 'netcoreapp2.1' " >
26
26
<PackageReference Include =" System.Runtime" Version =" 4.3.1" />
27
27
<PackageReference Include =" System.Reflection.Emit" Version =" 4.3.0" />
28
28
<PackageReference Include =" System.Reflection.Emit.LightWeight" Version =" 4.3.0" />
29
- <PackageReference Include =" Microsoft.CSharp" Version =" 4.5.0" />
30
29
</ItemGroup >
31
30
</Project >
Original file line number Diff line number Diff line change 16
16
</PropertyGroup >
17
17
<ItemGroup >
18
18
<PackageReference Include =" System.Memory" Version =" 4.5.3" />
19
+ <PackageReference Include =" Microsoft.CSharp" Version =" 4.5.0" />
19
20
</ItemGroup >
20
21
<ItemGroup Condition =" '$(TargetFramework)' == 'net45' " >
21
22
<Reference Include =" System.Configuration" />
22
- <Reference Include =" Microsoft.CSharp" />
23
23
</ItemGroup >
24
24
<ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0' " >
25
25
<PackageReference Include =" System.Runtime" Version =" 4.3.1" />
26
- <PackageReference Include =" Microsoft.CSharp" Version =" 4.5.0" />
27
26
</ItemGroup >
28
27
<ItemGroup Condition =" '$(TargetFramework)' == 'netcoreapp2.1' " >
29
28
<PackageReference Include =" System.Runtime" Version =" 4.3.1" />
30
29
<PackageReference Include =" System.Reflection.Emit" Version =" 4.3.0" />
31
30
<PackageReference Include =" System.Reflection.Emit.LightWeight" Version =" 4.3.0" />
32
- <PackageReference Include =" Microsoft.CSharp" Version =" 4.5.0" />
33
31
</ItemGroup >
34
32
</Project >
Original file line number Diff line number Diff line change @@ -226,14 +226,12 @@ public static string ToRot13(this string value)
226
226
227
227
public static string WithTrailingSlash ( this string path )
228
228
{
229
- if ( String . IsNullOrEmpty ( path ) )
229
+ if ( path == null )
230
230
throw new ArgumentNullException ( nameof ( path ) ) ;
231
+ if ( path == "" )
232
+ return "/" ;
231
233
232
- if ( path [ path . Length - 1 ] != '/' )
233
- {
234
- return path + "/" ;
235
- }
236
- return path ;
234
+ return path [ path . Length - 1 ] != '/' ? path + "/" : path ;
237
235
}
238
236
239
237
public static string AppendPath ( this string uri , params string [ ] uriComponents )
You can’t perform that action at this time.
0 commit comments