Merge branch 'v3.4'
[dotnetopenid.git] / tools / Sandcastle / Source / MRefBuilder / ResourceHelper.cs
blobba2a149b58eb362076fec4ccebd64d8d31391b59
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.
6 using System.IO;
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));