sonygod / sharpkit

Automatically exported from code.google.com/p/sharpkit
0 stars 0 forks source link

Support embedding text file as a method return value #60

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
[JsTextResource(File="fileName.txt")]
public string MyTextResourceFunction()
{
   return null;
}

same as this after compiling :

public string MyTextResourceFunction()
{
  return @"The context of 'fileName.txt'";
}

Original issue reported on code.google.com by DanelK...@gmail.com on 25 Nov 2011 at 2:38