Abrir una linea de comando en la carpeta del proyecto, instalar la libreria Newtonsoft.Json con
dotnet add package Newtonsoft.Json
Para serializar un objeto al formato Json realizar
Newtonsoft.Json.JsonConvert.SerializeObject(objeto);
using System; | |
using System.Timers; | |
namespace Blazored.Toast | |
{ | |
internal class CountdownTimer : IDisposable | |
{ | |
private Timer _timer; | |
private int _percentComplete; |
services.AddAuthentication(options => | |
{ | |
options.DefaultScheme = "Cookies"; | |
options.DefaultChallengeScheme = "oidc"; | |
}) | |
.AddCookie("Cookies") | |
.AddOpenIdConnect("oidc", options => | |
{ | |
options.Authority = "steam addess"; | |
options.ClientId = "given by steam"; |
using System; | |
using System.Collections.Generic; | |
namespace AgregarCarrito_openShop | |
{ | |
class GestorVentas | |
{ | |
static Carrito Carrito = new Carrito(); | |
static List<FormasPago> FormasPagos = new List<FormasPago>(); |
using System; | |
using System.Collections.Generic; | |
namespace AgregarCarrito___openShop | |
{ | |
class GestorVentas | |
{ | |
static Carrito Carrito = new Carrito(); | |
static List<FormasPago> FormasPagos = new List<FormasPago>(); |
I hereby claim:
To claim this, I am signing this object: