본문 바로가기

Programming/Etc

CSScript

사용자로부터 c# code를 입력받아서 business logic을 처리한다?


What is the CS-Script?

CS-Script is a CLR based scripting system which uses ECMA-compliant C# as a programming language. CS-Script currently targets Microsoft implementation of CLR (.NET1.1/2.0).  However CS-Script offers limited support for Mono and other CLR programming languages. 

 

CS-Script combines the power and richness of C# and FCL with the flexibility of a scripting system. CS-Script can be useful for the system and network administrators, developers and testers. For any one who needs an automation for solving variety of programming tasks such as:

 

analysing and adjusting system configuration

extending functionality of a software system with flexible scripting

configuring development or testing environment

automating software batch build

automating testing, and collecting test results

 

Virtually any type of automation on the system and application levels.

 

CS-Script as a development system does not compete with other C# based development systems (.NET +Visual Studio, Mono + SharpDevelop, ...). It is just a flexible alternative for the tasks which are hard (or effort consuming) to implement with non-scripting approaches.

 

Sample code

dynamic script = CSScript.Evaluator
                         .LoadCode(
@"using System;
                                     public class Script
                                     {
                                         public int Sum(int a, int b)
                                         {
                                             return a+b;
                                         }
                                     }");
int result = script.Sum(1, 2);

 

Reference

http://www.csscript.net/


'Programming > Etc' 카테고리의 다른 글

xls (excel format) 계속 지원해야 하는가?  (0) 2014.08.07
17th SW Quality Insight Conference  (0) 2014.07.22
Email service 추천  (0) 2014.07.22
Azure seminar  (0) 2014.07.22
악의 축 IE  (0) 2014.07.22