下面我们写个菲波基数作为demo尝鲜：完整项目寄宿在github：edge-demo

`var edge = require('edge'); var fib = edge.func({    source: function() {/* using System;using System.Linq;using System.Threading.Tasks; public class Startup{public async Task<object> Invoke(object input){int v = (int)input;var fib = Fix<int, int>(f => x => x <= 1 ? 1 : f(x - 1) + f(x - 2));return fib(v);} static Func<T, TResult> Fix<T, TResult>(Func<Func<T, TResult>, Func<T, TResult>> f){return x => f(Fix(f))(x);} static Func<T1, T2, TResult> Fix<T1, T2, TResult>(Func<Func<T1, T2, TResult>, Func<T1, T2, TResult>> f){return (x, y) => f(Fix(f))(x, y);}} */},    references: ['System.Core.dll']}); fib(5, function (error, result) {    if (error) console.log(error);    console.log(result);}); var fibFromFile = edge.func(__dirname  + "/fib.cs");fibFromFile(5, function (error, result) {    if (error) console.log(error);    console.log(result);}); var fibFromDll = edge.func({    assemblyFile: 'edge.demo.dll',    typeName: 'edge.demo.Startup',    methodName: 'Invoke'});fibFromDll(5, function (error, result) {    if (error) console.log(error);    console.log(result);});`