Is C# is having a seperate class library?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is C# is having a seperate class library?. Because it offers several features
comparing to other .NET languages.
 
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#.
 
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
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.

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
 
Back
Top