예제 #1
0
 /// <summary>
 /// Get module resource content
 /// </summary>
 /// <param name="resourceName"></param>
 /// <param name="moduleResourceNameSpace"></param>
 /// <param name="type"></param>
 /// <returns></returns>
 public static string GetModuleResourceContent(string resourceName, string moduleResourceNameSpace, ResourceType type = ResourceType.None)
 {
     if (type == ResourceType.None)
     {
         return(EmbeddedResourceHelper.GetString(resourceName, ResourceNamespace));
     }
     return(EmbeddedResourceHelper.GetString(string.Format("{0}.{1}", type.GetEnumName(), resourceName), moduleResourceNameSpace));
 }