add compatibility methods for .NET 2.0

This commit is contained in:
UnknownShadow200 2017-01-10 23:44:25 +11:00
parent 79d91cf5d2
commit 46c0e185dd

View File

@ -20,6 +20,21 @@ using System.Collections.Generic;
using System.Threading;
#if NET_20
namespace System.Runtime.CompilerServices {
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method)]
public sealed class ExtensionAttribute : Attribute {}
}
namespace System {
public delegate TReturn Func<TReturn>();
public delegate TReturn Func<T1, TReturn>(T1 arg1);
public delegate TReturn Func<T1, T2, TReturn>(T1 arg1, T2 arg2);
public delegate TReturn Func<T1, T2, T3, TReturn>(T1 arg1, T2 arg2, T3 arg3);
public delegate void Action();
public delegate void Action<T1, T2>(T1 arg1, T2 arg2);
}
namespace MCGalaxy.Util {
public sealed class IReaderWriterLock {