Search Wiki:
Project Description
Script .NET or S# is a language that provides scripting functionality in .NET applications, embedding custom functionality into CLR applications.
It is very simple, yet powerful enough to satisfy usual needs for scripting your application.

The key principles of Script .NET are:
• Be simple
• Be efficient
• Be intuitive

The significant difference between Script.NET and other similar solutions is that it has it's own interpreter, which means it doesn't use run-time compilation and doesn't generate additional in-memory assemblies.

Code Example: Factorial Calculation
 function fac(n){
   if (n==1) return 1;
   else return n*fac(n-1);
 }
 MessageBox.Show('Rez=' + fac(5) );

Code Example: CodePlex RSS Reader (Desktop)
  a = new XmlDocument();
  a.Load('http://www.codeplex.com/scriptdotnet/Project/ProjectRss.aspx');
 
  MessageBox.Show('CodePlex Script.NET RSS::');
  foreach (n in a.SelectNodes('/rss/channel/item/title'))
     MessageBox.Show(n.InnerText);

Code Example: CodePlex RSS Reader (WEB)
  a = new XmlDocument();
  a.Load('http://www.codeplex.com/scriptdotnet/Project/ProjectRss.aspx');
  MessageBox.Show('CodePlex Script.NET RSS::');
 
  foreach (n in a.SelectNodes('/rss/channel/item'))
     MessageBox.Show('<a href="' + n['link'].InnerText + '">' + n['title'].InnerText + '<//a>');

Links:

Last edited Oct 26 2007 at 9:53 AM  by ppp_extr, version 7
Updating...