Click here to Skip to main content
15,915,513 members
Home / Discussions / C#
   

C#

 
GeneralRe: implementing IList for a sortedlist Pin
zuhx1-Dec-03 9:29
zuhx1-Dec-03 9:29 
GeneralRe: implementing IList for a sortedlist Pin
Heath Stewart1-Dec-03 10:30
protectorHeath Stewart1-Dec-03 10:30 
GeneralRe: implementing IList for a sortedlist Pin
zuhx2-Dec-03 5:51
zuhx2-Dec-03 5:51 
GeneralSHGFI Flag Info Pin
Tristan Rhodes1-Dec-03 4:02
Tristan Rhodes1-Dec-03 4:02 
GeneralRe: SHGFI Flag Info Pin
Heath Stewart1-Dec-03 6:35
protectorHeath Stewart1-Dec-03 6:35 
GeneralRe: SHGFI Flag Info Pin
Tristan Rhodes1-Dec-03 20:44
Tristan Rhodes1-Dec-03 20:44 
GeneralRe: SHGFI Flag Info Pin
Heath Stewart2-Dec-03 2:33
protectorHeath Stewart2-Dec-03 2:33 
GeneralUrgent!!! Using pointers in C# Pin
rasarit171-Dec-03 3:32
rasarit171-Dec-03 3:32 
I'm new to C# and here is my problem!

In C++ my class would look like this!
public class Timetable //it's the timetable for a room
{
Timetable *next;
//every timetable has a pointer to the next least costly timetable
int booking [max_rooms][days_in_week][hours_in_day];
....
}

public class Colony
{
Timetable *first;//points to the least costly timetable in the colony
Timetable *last;//points to the most costly timetable in the colony
....

}



To use pointers in C# I know I have to mark these classes as "unsafe" .
How can I fix the objects??? If I don't use "fixed", at runtime I'll have an invalid pointer because the object will be relocated!

I read that I can use "ref" but I don't really now how
Please help me!
If anyone has sugestion ....


Sorry for my bad english!
Thank you for your time!Smile | :)



GeneralRe: Urgent!!! Using pointers in C# Pin
leppie1-Dec-03 6:09
leppie1-Dec-03 6:09 
GeneralRe: Urgent!!! Using pointers in C# Pin
Heath Stewart1-Dec-03 6:45
protectorHeath Stewart1-Dec-03 6:45 
Generalnew webform inside another Pin
krisman1-Dec-03 2:36
krisman1-Dec-03 2:36 
GeneralRe: new webform inside another Pin
Heath Stewart1-Dec-03 2:54
protectorHeath Stewart1-Dec-03 2:54 
GeneralRe: new webform inside another Pin
krisman1-Dec-03 3:47
krisman1-Dec-03 3:47 
GeneralAll C# fan want to know Pin
lajiyo1-Dec-03 2:05
lajiyo1-Dec-03 2:05 
GeneralRe: All C# fan want to know Pin
Heath Stewart1-Dec-03 2:49
protectorHeath Stewart1-Dec-03 2:49 
GeneralRe: All C# fan want to know Pin
lajiyo1-Dec-03 22:23
lajiyo1-Dec-03 22:23 
GeneralRe: All C# fan want to know Pin
Heath Stewart2-Dec-03 2:59
protectorHeath Stewart2-Dec-03 2:59 
GeneralRe: All C# fan want to know Pin
lajiyo3-Dec-03 2:29
lajiyo3-Dec-03 2:29 
GeneralRe: All C# fan want to know Pin
Heath Stewart3-Dec-03 3:29
protectorHeath Stewart3-Dec-03 3:29 
GeneralRe: All C# fan want to know Pin
lajiyo3-Dec-03 22:13
lajiyo3-Dec-03 22:13 
GeneralInsert an image into your message Pin
Asim N.1-Dec-03 1:26
Asim N.1-Dec-03 1:26 
GeneralC# vs Sound compression Pin
paladin20031-Dec-03 0:25
paladin20031-Dec-03 0:25 
GeneralRe: C# vs Sound compression Pin
Heath Stewart1-Dec-03 2:44
protectorHeath Stewart1-Dec-03 2:44 
GeneralRe: C# vs Sound compression Pin
paladin20031-Dec-03 4:57
paladin20031-Dec-03 4:57 
GeneralRe: C# vs Sound compression Pin
Heath Stewart1-Dec-03 6:23
protectorHeath Stewart1-Dec-03 6:23 

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.