Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / December 2004

Tip: Looking for answers? Try searching our database.

Is C# is having a seperate class library?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Perin - 07 Dec 2004 10:29 GMT
Is C# is having a seperate class library?. Because it offers several features
comparing to other .NET languages.
Signature

Perin

Bruce Wood - 07 Dec 2004 17:48 GMT
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#.
Claes Bergefall - 08 Dec 2004 10:55 GMT
> 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
[quoted text clipped - 3 lines]
> 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.

Actually, you can use (existing) operators from VB.NET aswell, but you
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
Bruce Wood - 07 Dec 2004 17:50 GMT
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#.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.