DateTimeOffset is marked as LayoutKind.Auto
I get this exception when trying to call Save()
System.TypeLoadException: Cannot marshal field 'LastWritten' of type 'WindowsCredentialManager.Win32.Types.CREDENTIALW': Structures marked with [StructLayout(LayoutKind.Auto)] cannot be marshaled.
DateTimeOffset is marked as
LayoutKind.AutoI get this exception when trying to call
Save()System.TypeLoadException: Cannot marshal field 'LastWritten' of type 'WindowsCredentialManager.Win32.Types.CREDENTIALW': Structures marked with [StructLayout(LayoutKind.Auto)] cannot be marshaled.