Jump to content
Xtreme .Net Talk

mogwai

Members
  • Posts

    4
  • Joined

  • Last visited

About mogwai

  • Birthday 01/03/1974

Personal Information

  • Visual Studio .NET Version
    Visual Studio .NET EA
  • .NET Preferred Language
    VB.NET (1st), C# (2nd)

mogwai's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. This is not the case when using XML serialization however. The XmlSerializer cannot serialize Hashtables, or any class that implements the IDictionary interface.
  2. Hi All, I have a simple class (lets say it's called Customer) which has an associated collection case (called CustomerCollection) that inherits from CollectionBase. The problem I have is that I am binding the collection class to a 3rd party grid control (Infragistics), but don't require all of the columns that are being bound to be displayed on the grid. The Customer class consists of a large number of properties that are necessary for other use within my app, but not necessary for grid display purposes. Yes - I know, I could just as easily override the layout initialization to stop the unwanted columns from being displayed. But what I'm ultimately after is a method of preventing these properties from being bound in the first place ! Does anyone know if there is an attribute that can be applied to a property that will stop it from being available when the class is databound ? Cheers, Mike.
  3. I have tried this, but this is not the root of the cause. The structures I am using are all complex types, containing arrays of other structures etc, etc. I have tried setting the <FieldOffset> attribute of each structure member, but still no joy. I have a few ideas up my sleeve which I need to try later today, but I'm not confident they'll work...
  4. Tor, Have you managed to find a solution to this problem yet ? I have also come across this issue with Marshalling, and I'm starting to tear my hair out over it... ! I'm having difficulty passing in a structure to DeviceIOControl which contains arrays of other structures, which in turn contain array of other structures..... My problem is a bit earlier on that yours, in that I have followed Derek's above advice. Unfortunately I am getting an error when attempting to get the size of the structure through Marshal.SizeOf(), and it is saying Type "TOC can not be marshaled as an unmanaged structure; no meaningful size or offset can be computed." Does anyone have any ideas what may be going wrong? If required I can post the relevant code here... ? Cheers! mogwai
×
×
  • Create New...