error passing a marshal-by-refernce-class
Hi i have the following class
Code:
public class User : XPBaseObject
{
public DateTime ReceiptTimeIntervalStart;
}
and i m trying to
Code:
Console.Write(user.ReceiptTimeIntervalStart.ToShortTimeString());
but the compiler says L:\NET Solutions\C#\OrderManager\frmUser.cs(200): Cannot pass 'OrderManager.User.ReceiptTimeIntervalStart' as ref or out, because 'OrderManager.User.ReceiptTimeIntervalStart' is a marshal-by-reference class
can someone help me please