Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/04/2011, 10:49
Ka0stj
 
Fecha de Ingreso: febrero-2010
Ubicación: México
Mensajes: 738
Antigüedad: 15 años, 1 mes
Puntos: 37
Respuesta: valores devueltos por una función c#

Puedes utilizar el tipo Object. En vez de regresar un string o un int regresar un Object y cuando tomes ese valor lo conviertes a su tipo de datos. Por ejemplo:

string valor = Convert.ToString(sumaresta());

Ó bien,

int valor = Convert.ToInt32(sumaresta());

Saludos!
__________________
http://ka0stj.wordpress.com/