
你将从本书学到什么? |
| intro 1 get productive with c#: visual applications, in 10 minutes or less why you should learn c# c# and the visual studio ide make 10ts of things easy help the ceo go paperless get to know your users' needs before you start building your prograj here's what you're going to build what you do in visual studio... what visual studio does for you... develop the user interface visual studio, behind the scenes add to the auto-generated code you can already run your application we need a database to store our information creating the table for the contact list the blanks on contact card are columns in our people table finish building the table diagram your data so your application can access it insert your card data into the database connect your form to your database objects with a data soui-ce add database-driven controls to your form good apps are intuitive to use how to turn your application into everyone's application give your users the application you're not done: test your installation you built a complete data-driven application 2 it's all just code: under the hood when you're doing this... ...the ide does this where programs come from the ide helps you code when you change things in the ide, you're also changing your code anatomy of a program your program knows where to start you can change your program's entry point two classes can be in the same namespace your programs use variables to work with data c# uses familiar math symbols loops pertbrm an action over and over again time to start coding if/else statements make decisions set up conditions and see if they're true 3 objects get oriented: making code make sense how mike thinks about his problems how mike's car navigation system thinks about his problems mike's navigator class has methods to set and modii~y routes use what you've learned to build a simple application mike gets an idea mike can use objects to solve his problem you use a class to build an object when you create a new object from a class, it's called an instance of that class a better solution.., brought to you by objects! an instance uses fields to keep track of things let's create some instances! thanks for the memory what's on your program's mind you can use class and method names to make your code intuitive give your classes a natural structure class diagrams help you organize your classes so they make:sense build a class to work with some ,guys . - create a project for your guys build a form to interact with the gays there's an even easier way to initialize objects a few ideas for designing intuitive classes 4 types and references: it's 10:00. doyou know whereyour data is? c# lab 1: a day at the races 5 encapsulation: keepyourprivates... private 6 inheritance: 13ur object'sjhmily tree 7 interfaces and abstract classes: making classes keep their promises 8 enums and collections: storing lots of data c# lab 2: the quest 9 reading and writing fries: save the byte array, save the world 10 exception handling: putting out fires gets old 11 events and delegates: what 13ur code does when you're not looking 12 review and preview: knowledge, power, and building cool stuff 13 controls and graphics: make it pretty 14 captain amazing: the death of the object 15 linq:get control of your data c# lab3:invaders appendix i:leftovers table of contents(the real thing) intro who is this book for? we know what you're thinking metacognition bend your brain into submission what you need for this book read me the technical review team acknowledgments |
商品评论(0条)