Thursday, July 9, 2009

C# and .net framework?

What are their differences?


Are they dependent on each other?


Is it possible to use c# without invoking any .net components (use native API only)?

C# and .net framework?
C# is a programming language; .NET is called a "framework". Basically, .NET is just a component of the Windows OS that supposedly makes it easier to write programs in a language (such as C#) that resides on top of it. It provides things such as class libraries, common runtime language, easy database connectivity, etc.





I played around with C# when it was still in Beta. In theory, C# and .NET are supposed to be independent. In fact at first it was reported that C# would be a platform independent ANSI standard, like it predecessor C. Whether that ever came about or not, I don't know. However, I do know that C# certainly didn't "take off" like Micro$oft anticipated..





Last question? I don't know for sure, as I don't deal with either of the two anymore. But I do know that I have never seen nor heard of C# anywhere else but in the .NET environment. My guess would be that Microsoft kept their greedy little hooks in it somehow (similiar to what they did with IE, which was without question in my mind, in strict violation of anti-trust laws) and made the former somehow dependent on the latter. JMHO!
Reply:C# is a programming language. .NET is a set of libraries that can be used by various computer languages, 1 of which is C#.





Yes, you can program entirely in C# and not use any libraries or functions from .NET.
Reply:C# really does depend upon using the .NET framework (AKA common runtime language or CLR). I suppose you could somehow avoid using all of the class libraries etc., but then why bother with C#; just use C++. The point of C# is to write what is called Managed Code (meaning it takes advantage of the CLR) so that you know it will function and perform consistently.

edible flowers

No comments:

Post a Comment