.NET FrameworkInvocation de plate-forme


Syntaxe

  • [DllImport ("Example.dll")] static extern void SetText (string inString);
  • [DllImport ("Example.dll")] static externe void GetText (StringBuilder outString);
  • [MarshalAs (UnmanagedType.ByValTStr, SizeConst = 32)] texte de chaîne;
  • [MarshalAs (UnmanagedType.ByValArray, SizeConst = 128)] byte [] byteArr;
  • [StructLayout (LayoutKind.Sequential)] structure publique PERSON {...}
  • [StructLayout (LayoutKind.Explicit)] public struct MarshaledUnion {[FieldOffset (0)] ...}

Invocation de plate-forme Exemples Liés