Chris, >Is there a way to do this in StructLayout.Explicit? I've been able to fake >it out a >little by using a [Flags] enum, but that doesn't work in the case of a >two bit field.
No, not possible. I suggest you use a plain integer of the right size, then mask out the bits you're interested in. Mattias === Mattias Sj�gren [EMAIL PROTECTED] You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.
