This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using AngleSharp; | |
using AngleSharp.Dom; | |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace PruebaHTML | |
{ | |
public class AvisoDeCambio : IAvisoDeCambio | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace ConsoleNetCore | |
{ | |
internal class PlacaIram2250 | |
{ | |
private readonly IDictionary<int, double> mRegulaciones = new Dictionary<int, double> | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public ActionResult ImprimirDetalleDistribucion(string CodigoDelfos, int Revision, string Versiones) | |
{ | |
int[] version = JsonConvert.DeserializeObject<int[]>(Versiones); | |
using(DBTrafosContext db = new DBTrafosContext()) { | |
var Trafo = db.Transformador.AsNoTracking().FirstOrDefault(c => c.Codigo_delfos == CodigoDelfos && c.Revision == Revision); | |
Trafo.Datos_Garantizados = Trafo.Datos_Garantizados.Where(c => version.Contains(c.Version)).ToList(); | |
ImprimirDetalleDistribucionViewModel im = new ImprimirDetalleDistribucionViewModel(Trafo); | |
return View(im); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Uso: | |
* Registro -> Messenger.Default.Register<Catalogo>(this, (o) => cat = new CatalogoSimpleViewModel(o)); | |
* Ahora la acción (segundo parámetro se disparará cuando desde otro lugar se envíe el sgte mensaje) | |
* Envío -> Messenger.Default.Send(((CatalogoViewModel)e).Model); | |
*/ | |
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Collections.Specialized; | |
using System.ComponentModel; | |
using System.Globalization; | |
using System.Linq; | |
namespace ChequeadorDeDespiece.Base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://github.com/ziyasal/FireSharp | |
using FireSharp; | |
using FireSharp.Config; | |
using FireSharp.Interfaces; | |
using FireSharp.Response; | |
using Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Windows.Forms; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class SingletonClass<T> | |
where T : SingletonClass<T>, new() | |
{ | |
private static T _instance = null; | |
public static T Instance | |
{ | |
get | |
{ | |
if(_instance == null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program { | |
static void Main (string[] args) | |
{ | |
List<Persona> t = new List<Persona> (); | |
t.Add (new Persona { Nombre = "Juan", Apellido = "Portugal" }); | |
t.Add (new Persona { Nombre = "AA", Apellido = "BB" }); | |
t.Add (new Persona { Nombre = "CC", Apellido = null }); | |
t.Add (new Persona { Nombre = "EE", Apellido = "FF" }); | |
t.Add (new Persona { Nombre = "FF", Apellido = null }); | |
t.Add (new Persona { Nombre = "AA", Apellido = "HH" }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
namespace ConsoleApp1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |