C# List

List< /span> List T is the element type in the list, compile The browser will check if the element type you add to the list is correct. If it is not correct, an error will be reported. In other wor

Jo C #

1 using System;
2 public class MyDate{
3 private int month,day,year;
4 public MyDate(int _month=1,int _day= 1,int _year=1900 ){
5 bool ok=true;
6 if(_month>12 || _month<1 || _year<0 || _

C # save files

SaveFileDialog sfd = new SaveFileDialog();
sfd.Filter = “Excel spreadsheet (*.xlsx)|* .xlsx”;
sfd.FilterIndex = 1;
sfd.RestoreDirectory = true;
if (sfd.ShowDialog() == DialogResult.OK)
{