Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApplication1
{
public class DbCException : Exception
{
public DbCException()
{
@panicoenlaxbox
panicoenlaxbox / gist:894a904afabf90ecdd6f
Last active December 21, 2016 09:24
View Nuget dependencies hierarchy
using System;
using System.Linq;
using System.Runtime.Versioning;
using NuGet;
namespace ConsoleApplication1
{
/// <summary>
/// View Nuget dependencies hierarchy
/// </summary>
@panicoenlaxbox
panicoenlaxbox / gist:5c6784e2be1171eed003
Created May 20, 2014 08:55
MongoCSharpDriver deserialize anonymous type
public class TempDataDocument
{
public string Id { get; set; }
public string Key { get; set; }
public object Value { get; set; } // Aquí puede ir cualquier cosa
}
public static void Main()
{
var client = new MongoClient("mongodb://localhost:27017");