Partial Class

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

Guest

Just curios to know why a vb class is referred to as partial class.
Especially after adding this item to your project.

Thanks for any clarifications.
 
Partial classes are just what they sond like, just a portion of the class.
While you can make your own custom partial classes, they are generally used
by VS 2005 to separate designer generated code from user code. If you
unhide the project files (in the Solution Explorer), you'll see a
Form1.Designer.vb file, which contains the automatically generated portion
of your form.

Both partial classes combine to form the entire class.
 
Scott M. said:
Partial classes are just what they sond like, just a portion of the class.
While you can make your own custom partial classes, they are generally used
by VS 2005 to separate designer generated code from user code. If you
unhide the project files (in the Solution Explorer), you'll see a
Form1.Designer.vb file, which contains the automatically generated portion
of your form.

Both partial classes combine to form the entire class.
 
Thanks Scott! This makes sense!

Scott M. said:
Partial classes are just what they sond like, just a portion of the class.
While you can make your own custom partial classes, they are generally used
by VS 2005 to separate designer generated code from user code. If you
unhide the project files (in the Solution Explorer), you'll see a
Form1.Designer.vb file, which contains the automatically generated portion
of your form.

Both partial classes combine to form the entire class.
 
Back
Top