mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
add compatibility methods for .NET 2.0
This commit is contained in:
parent
79d91cf5d2
commit
46c0e185dd
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user