University of Colombo, Sri Lanka  
User Name:     
Password: 

Forum
Is there pointer feature in C#?
Reply

Author: Kuhajeyan   Posted Date: 03/05/2006
Answer1: this reference will help you a lot! http://www.andymcm.com/dotnetfaq.htm#1.1

Author: Kuhajeyan   Posted Date: 27/04/2006
Answer2: ok, you welcome,

if you use pointers in c# you may not be able to access this application from other application which does not have pointer features. you should think that .net platform is like a common negotiater between .net compatible languages

standalone application is an application which does not use other applications it not being used other applications. (relate this what i was mentioning above....) . it is an application create services for itself and use them for itself.


Author: Kuhajeyan   Posted Date: 26/04/2006
Answer3: Answer to your question may be simple as YES,

But would boil down deeper as, why to or Not to use pointers in C#.

Since C# is first most compatible language with .NET platform specifications. it should compliant with .NET'S

1. Managed code approach
2. CLS - common language specification

learning more on above concepts would tell you why you should not use pointers in C#

But, you can still use pointers in c# if you going to write some standalone applications. but if u choose write a class library where you library would be accessble for other application written on other .NET compatible(or any other) languages, you should never use pointers!

PS: if you use pointers in C# that code block should always be enclosed within an "unsafe" block for the complier to regognize it as "incompatible .NET feature".


Author: Guest   Posted Date: 26/04/2006
Answer4:

First thank u for reply if it is late.
I am not clear.
What is the disadvantage using pointers in C#?
What is standalone application ?



© 2002-2026 UOC Tamil. All Rights Reserved. Facebook