Can I avoid Partial classes in VS.Net 2005 ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sagar

    Can I avoid Partial classes in VS.Net 2005 ?

    I am working on a migration project for a huge asp.net application now
    running in framwework 1.1 to dotnet 2.0

    As a first step, I opened the .sln files of the project in VS.Net
    2005. The Conversion wizard created partial classes off the existing
    classes.

    Is partial classes mandatory in VS.Net 2005 or can I still work
    without having to live with partial classes ?

    thanks
    Anand
  • Juan T. Llibre

    #2
    Re: Can I avoid Partial classes in VS.Net 2005 ?

    What do you expect to gain by not using partial classes ?



    Juan T. Llibre, asp.net MVP
    asp.net faq : http://asp.net.do/faq/
    foros de asp.net, en espaƱol : http://asp.net.do/foros/
    =============== =============== ========
    "Sagar" <anandsagar@gma il.comwrote in message
    news:9cad11fe-7af7-42fc-a870-3f0b552f1ac4@d6 1g2000hsa.googl egroups.com...
    >I am working on a migration project for a huge asp.net application now
    running in framwework 1.1 to dotnet 2.0
    >
    As a first step, I opened the .sln files of the project in VS.Net
    2005. The Conversion wizard created partial classes off the existing
    classes.
    >
    Is partial classes mandatory in VS.Net 2005 or can I still work
    without having to live with partial classes ?
    >
    thanks
    Anand

    Comment

    • Scott M.

      #3
      Re: Can I avoid Partial classes in VS.Net 2005 ?

      In my migration tests, I've found that the .aspx/.aspx.vb files migrated
      without any modifications to using partial classes (and from my reading, it
      should not convert existing pages to use them). After migrating, you *can*
      convert them to use partial classes if you were to right click on the
      project or file and choose "Convert To Web Application" (see:

      and look at "Step 6: Covert Code-Behind Classes to Partial Classes").

      So no, partial classes are NOT required.



      "Sagar" <anandsagar@gma il.comwrote in message
      news:9cad11fe-7af7-42fc-a870-3f0b552f1ac4@d6 1g2000hsa.googl egroups.com...
      >I am working on a migration project for a huge asp.net application now
      running in framwework 1.1 to dotnet 2.0
      >
      As a first step, I opened the .sln files of the project in VS.Net
      2005. The Conversion wizard created partial classes off the existing
      classes.
      >
      Is partial classes mandatory in VS.Net 2005 or can I still work
      without having to live with partial classes ?
      >
      thanks
      Anand

      Comment

      • Dave Bush

        #4
        Re: Can I avoid Partial classes in VS.Net 2005 ?

        Partial classes are not required. But you should move in that direction
        as fast as you can.

        -----Original Message-----
        From: Sagar [mailto:anandsag ar@gmail.com]
        Posted At: Thursday, November 22, 2007 8:22 AM
        Posted To: microsoft.publi c.dotnet.framew ork.aspnet
        Conversation: Can I avoid Partial classes in VS.Net 2005 ?
        Subject: Can I avoid Partial classes in VS.Net 2005 ?

        I am working on a migration project for a huge asp.net application now
        running in framwework 1.1 to dotnet 2.0

        As a first step, I opened the .sln files of the project in VS.Net
        2005. The Conversion wizard created partial classes off the existing
        classes.

        Is partial classes mandatory in VS.Net 2005 or can I still work
        without having to live with partial classes ?

        thanks
        Anand

        Comment

        • Sagar

          #5
          Re: Can I avoid Partial classes in VS.Net 2005 ?

          Thanks, I am basically looking towards minimal changes to code yet get
          the full benefit of .net 2.0.

          - Anand
          anandsagar@gmai l.com

          Comment

          • =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=

            #6
            Re: Can I avoid Partial classes in VS.Net 2005 ?

            Once you come to an understanding of why partial classes are useful, it won't
            be such a big deal I believe.

            --Peter
            "Inside every large program, there is a small program trying to get out."






            "Sagar" wrote:
            Thanks, I am basically looking towards minimal changes to code yet get
            the full benefit of .net 2.0.
            >
            - Anand
            anandsagar@gmai l.com
            >

            Comment

            Working...