By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,249 Members | 1,853 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,249 IT Pros & Developers. It's quick & easy.

Partial classes C# 2.0

P: n/a
Hi,

I know that we can define a class over multiple source files using the
keyword 'Partial' in C# within a project. Can we define the class over
multiple projects using the 'Patial' keyword- I know VB.Net does not allow
it, however was wondering if it's possible using C#?

Madhuri Mittal
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

A simple test will give you the answer to this. ( I can;t do it as I do not
have VS2005 in the office )

AFAIK this is not possible. you can only do this inside the same assembly.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Madhuri Mittal" <Ma***********@discussions.microsoft.com> wrote in message
news:E8**********************************@microsof t.com...
Hi,

I know that we can define a class over multiple source files using the
keyword 'Partial' in C# within a project. Can we define the class over
multiple projects using the 'Patial' keyword- I know VB.Net does not allow
it, however was wondering if it's possible using C#?

Madhuri Mittal

Nov 17 '05 #2

P: n/a
You definitely can't do it as each project compiles into a separate assembly and types are scoped to an assembly. in other words, Foo in the Bar assembly is considered, by the runtime, to be a different type to Foo is the Quuz assembly

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

Hi,

A simple test will give you the answer to this. ( I can;t do it as I do not
have VS2005 in the office )

AFAIK this is not possible. you can only do this inside the same assembly.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Madhuri Mittal" <Ma***********@discussions.microsoft.com> wrote in message
news:E8**********************************@microsof t.com...
Hi,

I know that we can define a class over multiple source files using the
keyword 'Partial' in C# within a project. Can we define the class over
multiple projects using the 'Patial' keyword- I know VB.Net does not allow
it, however was wondering if it's possible using C#?

Madhuri Mittal


[microsoft.public.dotnet.languages.csharp]
Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.