#Produtividade 4,5
- NLib - 3 => 13,5
- 3os - 4 => 18
- Flex - 4 => 18
- .Net - 5 => 22,5
#Customizabilidade 3
- NLib - 4 => 12
| using System.IO; | |
| using Newtonsoft.Json; | |
| using Newtonsoft.Json.Converters; | |
| using Restfulie.Server.Marshalling.Serializers; | |
| namespace NLib.Web.Configuracao.Restfulie | |
| { | |
| public abstract class NLSerializer : IResourceSerializer | |
| { | |
| private readonly JsonSerializer jsonSerializer; |
| (function (n) { | |
| n.Ajax = n.Ajax || {}; | |
| n.Ajax.Request = function () { | |
| this.url = "/"; | |
| this.requestDataType = "application/json"; | |
| this.responseDataType = "application/json"; | |
| this.successCallback = null; | |
| this.internalErrorCallback = null; | |
| this.notFoundCallback = null; |
#Produtividade 4,5
#Customizabilidade 3
#Produtividade (5-5-4-3)
#Customização (3-3-4-2)
| using System; | |
| using System.Collections.Generic; | |
| namespace Bolar | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| Bora.BolarUmBong.MandaVer(); |
| using System; | |
| namespace Bolar | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| Bora.BolarUmBong.MandaVer(); | |
| Bora.BolarUmFino.MandaVer(); |
| .replace(/new Date\(([0-9]*)\)/g, '"\/Date($1)\/"') ) |
| public class ActionInvoker : ControllerActionInvoker | |
| { | |
| protected override ActionDescriptor FindAction(ControllerContext controllerContext, ControllerDescriptor controllerDescriptor, string actionName) | |
| { | |
| var nome = ExtractActionName(actionName); | |
| var method = controllerDescriptor.ControllerType.GetMethod(nome, BindingFlags.Public | BindingFlags.Instance); | |
| return new ReflectedActionDescriptor(method, nome, controllerDescriptor); | |
| } |
| public class ControllerFactory : DefaultControllerFactory | |
| { | |
| public override IController CreateController(RequestContext requestContext, string controllerName) | |
| { | |
| IController controllerInstance = null; | |
| var controllerType = GetControllerType(controllerName); | |
| return base.GetControllerInstance(requestContext, controllerType); | |
| } |
| public class ControllerFactory : DefaultControllerFactory | |
| { | |
| public override IController CreateController(RequestContext requestContext, string controllerName) | |
| { | |
| IController controllerInstance = null; | |
| try | |
| { | |
| controllerInstance = base.CreateController(requestContext, controllerName); | |
| } |