Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating partial class in C#

I am a student and I dont know what a partial class is. The following code belongs to a partial class

I automatically created the partial class:

public partial class EGUI: Form
{     
    private OleDbConnection dbConn;   // Connectionn object
    private OleDbCommand dbCmd;       // Command object
    private OleDbDataReader dbReader; // Data Reader object
    private Emp Edetails;
    private string sConnection;
    private string sql;
}
like image 755
Mary Avatar asked Feb 15 '11 18:02

Mary


1 Answers

Here is the definitive answer: http://msdn.microsoft.com/en-us/library/wa80x488(v=vs.80).aspx

It is possible to split the definition of a class or a struct, or an interface over two or more source files. Each source file contains a section of the class definition, and all parts are combined when the application is compiled.

like image 90
Daniel A. White Avatar answered Sep 24 '22 22:09

Daniel A. White