Lecture 06SQL in C#, Project.ppt


文档分类:IT计算机 | 页数:约25页 举报非法文档有奖
1/25
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/25
文档列表 文档介绍
Lecture06 SQLinC#,ProjectFriday,April6,20071OutlineSQLinC#ReadChapter8ButnotethatitdoesnottalkaboutC#ProjectPhase1MeetourTA:Chi-WaiLau2C#-CrashCourseHelloWorldProperties(getters/setters)EnumsPartialclassesDataset:DataTable,/activities/Languages/Introduction%20to%#-HighlightsC#=C++.Sytnax+“safe”language(likeJava)plex,butyoushouldseethepredecessors!4usingSystem;classHello{staticvoidMain(){("Helloworld");}}lassPoint{privateintx;privatestringc;publicintposition{get{returnx;}set{x=value;c=“red”;}}publicstringcolor{get{returnc;}set{c=value;x++;}}Properties:GettersandSettersPointuvw=newPoint();=55;=“green”;=*2;if(==“green”)…6IndexersGettersandsetterswith[…]lassStuff{privateintx[];publicintthis[inti]{get{x[2*i+1]=0;returnx[2*i];}set{x[2*i]=value;x[2*i+1]=1;}}Stuffuvw=newStuff();uvw[12]=55;uvw[99]=uvw[12]*7+2;7enumColor:byte{Red=1,Green=2,Blue=4,Black=0,White=Red|Green|Blue,}Enum8PartialClassesSomefieldsdefinedinfile1Otherfieldsdefinedinfile2Why? Chi-Waicreatesfile1,youcreatefile29TheDatasetClassThisisanimportantclassthatallowsyoutointeractwithadatabaseDataset=a“mini”databaseinmainmemoryDataTableDataRow10

Lecture 06SQL in C#, Project 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数25
  • 收藏数0 收藏
  • 顶次数0
  • 上传人陈潇睡不醒
  • 文件大小112 KB
  • 时间2020-06-01