Reply
C# - pointers to string
Old 09-26-2005, 03:00 PM C# - pointers to string
Recrehal's Avatar
Experienced Talker

Posts: 39
Location: Aachen, Germany
I haven't used C# so far, so I only heared that C# doesn't have pointers. I'd like to know how C# would handle the following situation best:
an extremely long string that I would mark in C with a few pointers here and there so I could go back to them and add some information. The idea is that I don't want to go trough the whole string to get to these positions but jump right there; I know pointers would handle that pretty well, but if you already have a better idea let me know.
Now how would C# do that without going throgh the string? It might sound pathetic rigth now but this will be a major performance point for my project so I'd like to know if C# is a good choice for it.
Recrehal is offline
Reply With Quote
View Public Profile Visit Recrehal's homepage!
 
When You Register, These Ads Go Away!
Old 09-26-2005, 04:39 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
C# has pointers - you just have to stick any pointer stuff into an unsafe { } block.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';
Scribble Pad MOD for phpBB (aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Reply     « Reply to C# - pointers to string
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11174 seconds with 12 queries