7. C-sharp 1 13-08-2013

Created Saturday 23 November 2013

** Beginning new courses:
1) 2609 - 36 hours
2) 20483 - 36 hours
*** 72 hours for:
1) C# - 24 hours - beginning
2) OOP - 24 hours - intermediate
3) .NET - 4.0, 4.5, 5.0 - 24 hours - advanced
** .NET Framework
1) Set of programs under Windows that permits developing programs that will run on that set
2) Infrastructure for developing and running programs
3) Mono - .NET framework for Linux
*** Main components (position 3:269)
1) CLR
2) Class library (6000-7000 classes)
3) Development frameworks (examples):
1) WPF
2) Windows store
3) ASP.NET
4) WCF
*** Multiple .NET Framework versions may be used on single system
*** Recommended literature
*** Visual studio templates (examples):
1) Console Application
2) Windows Forms Application
3) WPF Application
4) Windows Store
5) Class Library
6) ASP.NET Web Application
7) ASP.NET MVC 4 Application
8) WCF Service Application
** Program in C# is always a project
*** Project - a collection of files and folders
*** Solution - a program that consists of several projects
** Minimal program in C# (different for different application types):
1) Console project:
1) May consist of only one file:
#+BEGIN_SRC C#
using System;
using System.Collections.Generic;
using Linq;
using System.Text;
namespace ConsoleApplication6 {
class Program {
static void Main(string[] args) {
}
}
}
#+END_SRC
2) Really minimal:
#+BEGIN_SRC C#
class Program {
static void Main(string[] args) {
System.Console.WriteLine("hello");
}
}
#+END_SRC
** Minimal file (.cs) structure
1) In the beginning (optional) may be "using" directives (for "less typing"):
1) System.Console.WriteLine("hello"); OR:
2) using System;
Console.WriteLine("hello");
2) namespace (optional for single-file little projects) useful for names reusing:
x.Program, y.Program...
** Every class we'll put in its own file
** Main is MUST (as generated for console..)
** Keys + paths
1) Ctrl+Alt+L - Solution Explorer
2) RM + Open containing project
3) Build + Build Solution - compile
** URLS for books
1) http://ru.books.org:
Search:
1) Deitel C# How to Program
2) Shildt reference (maybe other site)
3) Albahari C# in a Nutshell/Pocket reference
4) Dino Esposito
5) MUST: Steve McConnel Code Complete
** Homework:
1) Check the blog!!!



Backlinks: