//delegate is a pointer and object of delegate will point to the function public static int[] Map(this int[] a, Smp value) { for (int i = 0; i < a.Length; i++) { //value is a object and it will call a function that is present in the Map and perform the operation a[i] = value(a[i]); } return(a); }
public int AddSmp(Smp s) { int res = 0; if (s != null) { res = sta.Insert(GetLastConsecutive(), s.nombre, s.numero, s.id_linea, s.id_equipo, s.fecha_smp, s.clasificacion, s.tipo_mtto, s.tecnicos_eq, s.duracion_actividad, s.equipo_parado, s.frecuencia, s.tipo_frecuencia, s.id_elaborador, s.id_aprobador, s.loto, s.permisos, s.imagen_1, s.imagen_2); } return((int)sta.ScalarQuery()); }