|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Is C# is having a seperate class library?Is C# is having a seperate class library?. Because it offers several features
comparing to other .NET languages. -- Perin I think that you're confusing "class library" and "language features."
They're not the same thing at all. C# has the same class library as VB.NET, C++.NET, and whatever-else.NET. You can instantiate the same objects and call the same methods in all .NET languages. However, some languages have syntax that doesn't exist in the other languages. This language syntax allows you to do different things in the language, or express the same concepts in different ways. The _language_ is different, but the _classes_ that you're working with are the same. There is only one "exception" to what I just said, and that is that some languages (notably C#) have some language syntax that allows you to get at properties and methods of classes that other languages "can't see." I'm talking about C#'s and C++'s ability to define operators for new type combinations, something for which VB.NET does not have built-in syntax. In this one case there are a few methods in the class library that you can use from C# but not from VB.NET. However, 99% of what is in the .NET Framework is usable from all .NET languages, and no, there is no separate class library for C#. > There is only one "exception" to what I just said, and that is that Actually, you can use (existing) operators from VB.NET aswell, but you> some languages (notably C#) have some language syntax that allows you > to get at properties and methods of classes that other languages "can't > see." I'm talking about C#'s and C++'s ability to define operators for > new type combinations, something for which VB.NET does not have > built-in syntax. In this one case there are a few methods in the class > library that you can use from C# but not from VB.NET. can't define your own. It does look kind of weird though: If Rectangle.op_Equality(rc1, rc2) Then instead of if (rc1 == rc2) IIRC someone mentioned that VB.NET will have full support for operators in 2.0 /claes I think that you're confusing "class library" and "language features."
They're not the same thing at all. C# has the same class library as VB.NET, C++.NET, and whatever-else.NET. You can instantiate the same objects and call the same methods in all .NET languages. However, some languages have syntax that doesn't exist in the other languages. This language syntax allows you to do different things in the language, or express the same concepts in different ways. The _language_ is different, but the _classes_ that you're working with are the same. There is only one "exception" to what I just said, and that is that some languages (notably C#) have some language syntax that allows you to get at properties and methods of classes that other languages "can't see." I'm talking about C#'s and C++'s ability to define operators for new type combinations, something for which VB.NET does not have built-in syntax. In this one case there are a few methods in the class library that you can use from C# but not from VB.NET. However, 99% of what is in the .NET Framework is usable from all .NET languages, and no, there is no separate class library for C#.
Other interesting topics
DataBinding, grr
Add result using EnumWindow/GetWindowText ListBox problem Calculations with DateTime fields using DataColumn.Expression stri How to get a file's date/time correctly? Threads with Windows. I need to run a vb.net or aspx.net file every 10 seconds. Tabbing to next field after Return key return errorlevel from winform Moving from VB6 to Visual Studio.NET |
|||||||||||||||||||||||