-
Notifications
You must be signed in to change notification settings - Fork 0
/
ResourceHelper.cs
32 lines (29 loc) · 890 Bytes
/
ResourceHelper.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
Copyright (c) 2011, thinktecture (http://www.thinktecture.com).
All rights reserved, comes as-is and without any warranty. Use of this
source file is governed by the license which is contained in LICENSE.TXT
in the distribution.
*/
using System.Reflection;
using System.Resources;
namespace Thinktecture.ServiceModel
{
/// <summary>
///
/// </summary>
internal class ResourceHelper
{
/// <summary>
/// Gets the string.
/// </summary>
/// <param name="key">The key.</param>
/// <returns></returns>
public static string GetString(string key)
{
ResourceManager resourceManager = new ResourceManager(
"Thinktecture.ServiceModel.Properties.Resources",
Assembly.GetExecutingAssembly());
return resourceManager.GetString(key);
}
}
}