Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



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
Trades: 0
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!
 
 
Register now for full access!
Old 09-26-2005, 04:39 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
C# has pointers - you just have to stick any pointer stuff into an unsafe { } block.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.14453 seconds with 12 queries