Skip to content

Instantly share code, notes, and snippets.

@benbishop
benbishop / IOSResourceManager
Last active December 21, 2015 02:09
A simple way to reuse your Strings.xml file from your Xamarin.Android app in Xamarin.IOS. To use, this all you have to do is include the Strings.xml file in the root of your project as a Bundle Resource.
public static class ResourceManager
{
static XDocument stringsDoc;
static XDocument integersDoc;
static ResourceManager ()
{
stringsDoc = XDocument.Load ("Strings.xml");
integersDoc = XDocument.Load ("Integers.xml");
@cuppster
cuppster / 1.cs
Created September 3, 2012 18:39
Promises for C# using Generics
/*
modified from original source: https://bitbucket.org/mattkotsenas/c-promises/overview
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Promises