|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Pointers in C#?
I have came across with some .net articles, and i found that there are pointers in C#. Actually i prefer to program using java because there is no pointers...Since C# is similar to java, then is pointers really necessary?
|
|
#2
|
|||
|
|||
|
You seem to be mistaken, there are no pointers in C#.
|
|
#3
|
|||
|
|||
|
Quote:
When you have an entity that uses pointers, it must be qualified as 'unsafe'. Then the compilation of this entity can fail if the proper compile option is set. (something like "do not authorise unsafe entities") If you like to program in Java, well, don't use pointers. Don't assert nullity by hand. Let the language do it for you. Pointers are bad. But they're quick. But they're bad. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > .NET Development > Pointers in C#? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|