where are partial classes stored?

D

Dica

i've converted a 1.1 dot net app to 2.0 which has split all my classes into
partials. when i try to build the app, i keep getting an error about "The
type 'myClassName.bookingApproval' already contains a definition for
'dgBookingRequest'".

i've looked through the the page and dgBookingRequest is only defined once.
i'm assuming it's defined again in the partial class, but how do i see that?

tks.
 
N

Nicholas Paldino [.NET/C# MVP]

Dica,

It would be in another code file. You can do a search in the project
for the "partial" keyword. Typically though, you are going to see this in
designer generated files which are associated with components (like controls
and forms). You might want to look in there first. Just click on the plus
sign next to your forms/controls/datasets/components to expand the
associated designer files and then search in those.
 
A

Alberto Poblacion

Nicholas Paldino said:
[...] Just click on the plus sign next to your
forms/controls/datasets/components to expand the associated designer files
and then search in those.

If you don't see the plus sign, click on the icon on top of the
Solution Explorer whose tooltip reads "Show All files".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top