Click here to Skip to main content
15,889,651 members
Home / Discussions / C#
   

C#

 
GeneralDeploying my C# control internationally : Sattelite Assembly Support Pin
Nadia Monalisa5-Feb-08 16:46
Nadia Monalisa5-Feb-08 16:46 
GeneralExit In XNA Pin
MasterSharp5-Feb-08 14:46
MasterSharp5-Feb-08 14:46 
GeneralRe: Exit In XNA Pin
Ennis Ray Lynch, Jr.5-Feb-08 17:13
Ennis Ray Lynch, Jr.5-Feb-08 17:13 
GeneralCreating a structure that returns a value for sizeof() Pin
Skippums5-Feb-08 12:32
Skippums5-Feb-08 12:32 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
PIEBALDconsult5-Feb-08 13:32
mvePIEBALDconsult5-Feb-08 13:32 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
Skippums5-Feb-08 13:38
Skippums5-Feb-08 13:38 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
Mark Churchill5-Feb-08 14:28
Mark Churchill5-Feb-08 14:28 
QuestionRe: Creating a structure that returns a value for sizeof() Pin
Skippums6-Feb-08 4:55
Skippums6-Feb-08 4:55 
I have a collection that I wrote that has a statement at the top as follows:
using BaseType = SomeStructTypeHere;
...
public class Foo : ... {
    ...
    private const int           c_Size = sizeof(SomeStructTypeHere) << 3;
    private static readonly int c_Bits = MathExtension.Log2(c_Size);
    ...
}
I did this for maintenence purposes, so I could modify the 'Foo' class as necessary to use one of any number of structures as the base type for the class (changing the base type only changes the hard limits on the class, but NOT its functionality). This class is being used in a web service, and therefore cannot use unsafe code, as I have explained. I would now like to use the 'Foo' class with my type as 'BaseType'. How can I go about doing this? Thanks,

Sounds like somebody's got a case of the Mondays

-Jeff

GeneralRe: Creating a structure that returns a value for sizeof() Pin
PIEBALDconsult6-Feb-08 13:06
mvePIEBALDconsult6-Feb-08 13:06 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
Skippums6-Feb-08 13:36
Skippums6-Feb-08 13:36 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
Mark Churchill6-Feb-08 15:16
Mark Churchill6-Feb-08 15:16 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
PIEBALDconsult5-Feb-08 14:28
mvePIEBALDconsult5-Feb-08 14:28 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
Skippums6-Feb-08 4:59
Skippums6-Feb-08 4:59 
GeneralI need help how to start this program. Pin
Alex5015-Feb-08 11:27
Alex5015-Feb-08 11:27 
GeneralRe: I need help how to start this program. Pin
Gareth H5-Feb-08 11:59
Gareth H5-Feb-08 11:59 
GeneralRe: I need help how to start this program. Pin
led mike5-Feb-08 12:07
led mike5-Feb-08 12:07 
GeneralRe: I need help how to start this program. Pin
Malcolm Smart5-Feb-08 21:05
Malcolm Smart5-Feb-08 21:05 
GeneralRe: I need help how to start this program. Pin
J4amieC5-Feb-08 22:37
J4amieC5-Feb-08 22:37 
GeneralRe: I need help how to start this program. Pin
Wes Aday6-Feb-08 4:18
professionalWes Aday6-Feb-08 4:18 
GeneralBest method to save dynamic data Pin
Richard Blythe5-Feb-08 10:50
Richard Blythe5-Feb-08 10:50 
GeneralRe: Best method to save dynamic data Pin
led mike5-Feb-08 12:04
led mike5-Feb-08 12:04 
GeneralRe: Best method to save dynamic data Pin
Mark Churchill5-Feb-08 14:31
Mark Churchill5-Feb-08 14:31 
GeneralRe: Best method to save dynamic data Pin
User 2710095-Feb-08 17:22
User 2710095-Feb-08 17:22 
GeneralRe: Best method to save dynamic data Pin
Richard Blythe5-Feb-08 17:41
Richard Blythe5-Feb-08 17:41 
GeneralRe: Best method to save dynamic data Pin
User 2710095-Feb-08 17:50
User 2710095-Feb-08 17:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.