Skip to content

Instantly share code, notes, and snippets.

View eloekset's full-sized avatar

Eivind Gussiås Løkseth eloekset

View GitHub Profile
@PeteGoo
PeteGoo / Global.asax.cs
Created April 9, 2012 00:24
ProtobufNetFormatter for Web API
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
@rudyryk
rudyryk / TextMeter.cs
Last active August 8, 2021 10:53
C# — Measure string size in Xamarin.Forms for iOS and Android platforms
//
// TextMeter.cs
// Created by Alexey Kinev on 11 Feb 2015.
//
// Licensed under The MIT License (MIT)
// http://opensource.org/licenses/MIT
//
// Copyright (c) 2015 Alexey Kinev <[email protected]>
//
// Usage example: