forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request dotnet/corefx#6597 from tarekgh/netstandard15aot
Introducing netstandard13aot target group in System.IO Commit migrated from dotnet/corefx@36f0fab
- Loading branch information
Showing
5 changed files
with
90 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Runtime.CompilerServices; | ||
|
||
namespace System | ||
{ | ||
// This is a placeholder for resources access implementation for corert. | ||
// At some point we’ll have the real implementation which expect to be shared between | ||
// System.IO, System.Runtime.Extensions and System.Resources.ResourceManager. | ||
|
||
internal static partial class SR | ||
{ | ||
[MethodImpl(MethodImplOptions.NoInlining)] | ||
internal static string GetResourceString(string resourceKey) | ||
{ | ||
return resourceKey; | ||
} | ||
|
||
internal static string GetResourceString(string resourceKey, string defaultString) | ||
{ | ||
return defaultString != null ? defaultString : resourceKey; | ||
} | ||
|
||
internal static string Format(string resourceFormat, params object[] args) | ||
{ | ||
if (args != null) | ||
{ | ||
return string.Format(resourceFormat, args); | ||
} | ||
|
||
return resourceFormat; | ||
} | ||
|
||
|
||
[MethodImpl(MethodImplOptions.NoInlining)] | ||
internal static string Format(string resourceFormat, object p1) | ||
{ | ||
return string.Format(resourceFormat, p1); | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.NoInlining)] | ||
internal static string Format(string resourceFormat, object p1, object p2) | ||
{ | ||
return string.Format(resourceFormat, p1, p2); | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.NoInlining)] | ||
internal static string Format(string resourceFormat, object p1, object p2, object p3) | ||
{ | ||
return string.Format(resourceFormat, p1, p2, p3); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters