Files
OpenRA/OpenRa.FileFormats/Exts.cs
2010-01-31 13:55:01 +13:00

20 lines
347 B
C#

using System;
using System.Collections.Generic;
namespace OpenRa
{
public static class Exts
{
public static string F(this string fmt, params object[] args)
{
return string.Format(fmt, args);
}
public static void Do<T>( this IEnumerable<T> e, Action<T> fn )
{
foreach( var ee in e )
fn( ee );
}
}
}