Ejemplo n.º 1
0
        public static IEntity ToEntity(ContractBase contract)
        {
            string     methodName = string.Format("To{0}", contract.GetType().Name.Replace("Contract", ""));
            MethodInfo method     = typeof(Converter).GetMethod(methodName);

            return(method.Invoke(null, new object[] { contract }) as IEntity);
        }