Cannot take the address of, get the size of, or declare a pointer to a managed type ('type name')

Posted by Behrooz on Stack Overflow See other posts from Stack Overflow or by Behrooz
Published on 2010-04-01T09:28:36Z Indexed on 2010/04/01 9:33 UTC
Read the original article Hit count: 343

Filed under:
|
|
|

this error stops compiling if i have one or more System.String in my structs
is there any other way to store strings?

i have tried things like this:

private long _B_ID;
private byte[] _C_Name;
private byte[] _C_Address;
private byte[] _C_Telephone;

but it is not seeming to work.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about structs