I think you missed the point I was trying to make. What you show is just
calling an operator which will create an instance of the class and call it's
constructor, which is not the same thing.

Regards,

Fernando Tubio

----- Original Message -----
From: "Christopher Frazier" <[EMAIL PROTECTED]>
To: <ADVANCED-DOTNET@DISCUSS.DEVELOP.COM>
Sent: Friday, May 25, 2007 7:52 PM
Subject: Re: [ADVANCED-DOTNET] static class interface


Object obj = new Foo();

That will.
--
-Christopher
| AspInsider
http://chrisfrazier.net/blog

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.


-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Fernando Tubio
Sent: Friday, May 25, 2007 4:25 PM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] static class interface

Another short answer: classes aren't objects in .NET.

*Everything* is an object in .NET.

But classes aren't, otherwise the following would compile.

class Foo
{
}
object obj = Foo;


Regards,

Fernando Tubio

===================================
This list is hosted by DevelopMentor  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentor  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentor�  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to