mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 04:18:43 +00:00
30 lines
611 B
C#
30 lines
611 B
C#
using System;
|
|
using IL2CPU.API.Attribs;
|
|
|
|
namespace Cosmos.Core_Plugs.System
|
|
{
|
|
|
|
[Plug(Target = typeof(MulticastDelegate))]
|
|
public class MulticastDelegateImpl
|
|
{
|
|
public static bool Equals(MulticastDelegate aThis, object aThat)
|
|
{
|
|
// todo: implement MulticastDelegate.Equals(MulticastDelegate)
|
|
return false;
|
|
}
|
|
|
|
public static bool TrySetSlot(MulticastDelegate multicastDelegate, object[] a, int index, object o)
|
|
{
|
|
if (a[index] == null)
|
|
{
|
|
a[index] = o;
|
|
}
|
|
|
|
if (a[index] != null)
|
|
{
|
|
return false;
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
}
|