1 // Copyright © Microsoft Corporation.
2 // This source file is subject to the Microsoft Permissive License.
3 // See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx.
4 // All other rights reserved.
7 using System
.Reflection
;
8 using System
.Resources
;
10 namespace Microsoft
.Ddue
.Tools
.DxCoach
{
12 internal sealed class ResourceHelper
{
14 private static ResourceManager manager
= new ResourceManager("TextStrings", Assembly
.GetExecutingAssembly());
16 private ResourceHelper() { }
18 public static Stream
GetStream(string file
) {
19 return (Assembly
.GetExecutingAssembly().GetManifestResourceStream(file
));
22 public static string GetString(string key
) {
23 return (manager
.GetString(key
));