Skip to content

Instantly share code, notes, and snippets.

View Zonciu's full-sized avatar
💭
I may be slow to respond.

Zonciu Liang Zonciu

💭
I may be slow to respond.
View GitHub Profile
@Zonciu
Zonciu / SerializationTest.cs
Last active May 6, 2019 01:36
protobuf-net/MessagePack/Json.NET Serialization Test
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
using System.Security.Cryptography;
using System.Text;
using Newtonsoft.Json;
namespace YourNamespace
{
/// <summary>
/// Uses the Name value of the <see cref="ColumnAttribute"/> specified to determine
/// the association between the name of the column in the query results and the member to
/// which it will be extracted. If no column mapping is present all members are mapped as
/// usual.
/// </summary>
/// <typeparam name="T">The type of the object that this association between the mapper applies to.</typeparam>
public class ColumnAttributeTypeMapper<T> : FallbackTypeMapper
@Zonciu
Zonciu / 0_reuse_code.js
Created December 13, 2016 17:39
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console