Raven.Database.Json.ScriptedJsonPatcher.GetFromResources C# (CSharp) Method

GetFromResources() private static method

private static GetFromResources ( string resourceName ) : string
resourceName string
return string
		private static string GetFromResources(string resourceName)
		{
			Assembly assem = typeof(ScriptedJsonPatcher).Assembly;
			using (Stream stream = assem.GetManifestResourceStream(resourceName))
			{
				using (var reader = new StreamReader(stream))
				{
					return reader.ReadToEnd();
				}
			}
		}
	}