Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0647-11.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a4591ff5e52a8e721c69fbfe9765c5ba9427b788 (plain)
1
2
3
4
5
6
7
8
9
10
11
// cs0647-11.cs: Error during emitting `System.Runtime.InteropServices.MarshalAsAttribute' attribute. The reason is `Specified unmanaged type is only valid on fields'
// Line: 10

using System;
using System.Runtime.InteropServices;

public class main {

    [DllImport("libname", EntryPoint = "scumbag")]
    static extern int scumbag(ref int X, [MarshalAs(UnmanagedType.ByValArray)] ref byte[] fb);
}