and we consistently got complaints that you couldn't do that when we tried it in 1.0
and we consistently got complaints that you couldn't do that when we tried it in 1.0
you'll never please everyonebut when both sides are really angry, it's annoying
Fody/InlineIL: Type Silk.NET.Core.MutMut has no constructor with signature (Silk.NET.Core.Mut) (in Silk.NET.Core.MutMut Silk.NET.Core.MutMut::op_Implicit(System.Byte*[]) at instruction IL_0053: call System.Void InlineIL.IL/Emit::Newobj(InlineIL.MethodRef))

/// <summary>
/// creates a <see cref="MutMut"/> from a pointer array
/// </summary>
/// <param name="array"></param>
public static implicit operator MutMut(byte*[] array)
{
IL.Emit.Ldarg_0();
IL.Emit.Ldc_I4_0();
IL.Emit.Ldelema(TypeRef.Type(typeof(byte).MakePointerType()));
IL.Emit.Newobj(
MethodRef.Constructor(
TypeRef.Type(typeof(MutMut)),
TypeRef.Type(typeof(Mut))
)
);
IL.Emit.Ret();
throw IL.Unreachable();
}