read embedded resource c# xml
public string GetResourceTextFile(string filename)
{
string result = string.Empty;
using (Stream stream = this.GetType().Assembly.
GetManifestResourceStream("assembly.folder."+filename))
{
using (StreamReader sr = new StreamReader(stream))
{
result = sr.ReadToEnd();
}
}
return result;
}
Also in C#:
- how do i foreach c#
- how to trim path in C#
- c# variable
- c# get list of all class fields
- application.stop unity
- unity accessing 2d pointlight from c# script
- vb.net check if datatable has rows
- C# extend array
- web api startup add imemory cache object
- c# console delay
- unity inspector header attribute
- c# return two variables of different types
- c# singleton
- using mediamanager how to play mp3 files
- print line in python
- convert string to boolean c#
- how to find the area of a circle
- unity persistent data
- get string character by index c#
- exception handling c# stack overflow
- The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located.
- c# display float with 2 decimal places
- unity fall damage c#
- unity c# foreach