






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This programming course teaches different programming concepts with respect to C Sharp Programming. Key points of this lecture are: Type Conversion, Assignment Statements, Understanding Tostring, String Conversion, Integers, Numeric Type Conversion, Restrictive Numeric Data, Casting Problem, Creating a Cast, Casts and Multicast Event
Typology: Slides
1 / 11
This page cannot be seen from the preview
Don't miss anything!







The data types on the left and right side of expressions much match
int i = 3; string s; s = i;
int i = 3; string s; s = i.ToString();
txtOutput.Text = btnToStringDemo2.ToString();
System.Windows.Forms.Button, Text: ToString Demo 2
int i = int.MaxValue; int j = int.MaxValue; long l; l = (long)i + (long)j;
this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButtonX_CheckedChanged);
this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButtonX_CheckedChanged);
this.radioButton3.CheckedChanged += new System.EventHandler(this.radioButtonX_CheckedChanged);
private void radioButtonX_CheckedChanged(object sender, EventArgs e) { RadioButton r;
r = (RadioButton)sender; txtOutput.Text = "radioButtonX_CheckedChanged fired. " + "The control " + r.Name + " fired the event."; }