2 Replies - 4129 Views - Last Post: 27 December 2011 - 08:20 AM

#1 111027  Icon User is offline

  • D.I.C Head

Reputation: 17
  • View blog
  • Posts: 141
  • Joined: 26-December 11

Unsafe code?

Posted 26 December 2011 - 03:35 PM

I'm interested in how many of you use the unsafe code options of C#? And how often? I find that particular option its very biggest advantage over, say Java. What is your opinion on that matter?
Is This A Good Question/Topic? 1
  • +

Replies To: Unsafe code?

#2 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5436
  • View blog
  • Posts: 11,662
  • Joined: 02-June 10

Re: Unsafe code?

Posted 26 December 2011 - 03:56 PM

I have to use it when I am doing low level stuff with bitmaps in memory for speed. Also a couple camera SDK's require blocks of memory to be pre-allocated so they have an address to dump recently shot photos into as part of their API.
Was This Post Helpful? 0
  • +
  • -

#3 Curtis Rutland  Icon User is online

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 4437
  • View blog
  • Posts: 7,710
  • Joined: 08-June 10

Re: Unsafe code?

Posted 27 December 2011 - 08:20 AM

I've never personally had to use it. But I'm doing business-type applications, so it'd be unlikely I'd need it.

Edit: I'm also going to move this to the C# Programmer's Lounge, it'll fit better there.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1