Programacion
Introducción a la Programación en C# .NET
Ing. Bruno López Takeyas
Instituto Tecnológico de Nuevo Laredo
1
CONTENIDO
1. 2. 3. 4. 5. 6. 7.
Introducción a la Programación en C# .NET Declaraciones Instrucciones fundamentales Arreglos Métodos y parámetros Tipos de datos definidos por el usuario Archivos
2
MATERIAL DISPONIBLEhttp://ramonroque.com/Materias/pooTec.htm
• Libro: El lenguaje de Programación C# • Autor: José Antonio González Seco • http://www.josanguapo.com/
3
BIBLIOGRAFÍA
Archer, Tom. “A fondo C#”. Editorial McGraw Hill. 2001. Charte, Francisco. “Manual de Introducción a Microsoft Visual C# 2005 Express Edition”. Deitel & Deitel. “Programming in C#”. Editorial Prentice Hall. Ferguson, Jeff. “La Biblia de C#”. Editorial Anaya.2003. Miles, Rob. “C# Development”. Department of Computer Science. University of Hull. 20082009.
4
1.- INTRODUCCIÓN A LA PROGRAMACIÓN EN C# .NET
Introducción a la plataforma Microsoft .NET
– El framework .NET y sus componentes – Principales clases del framework .NET
Microsoft Visual Studio .NET
– Compilación y ejecución de programas – El debugger – Breakpoints – Watches – Ejecutar paso apaso – Examinar variables en tiempo de ejecución
5
INTRODUCCIÓN A LA PLATAFORMA MICROSOFT .NET
Visual C++ Basic C# Perl J# …
XML Web Services User Interface ASP.NET ADO.NET: Data and XML .NET Framework Class Library Common Language Runtime
Message Queuing COM+ (Transactions, Partitions, Object Pooling) IIS WMI
Win32
6
COMPONENTES DEL FRAMEWORK .NET
Common Language RuntimeLibrerías de clases del Framework .NET ADO.NET: Datos and XML Formas Web y Servicios Web XML Interfaces para Windows
7
COMMON LANGUAGE RUNTIME
Base Class Library Support Thread Support Type Checker Security Engine MSIL to Native Compilers
(MSIL=Microsoft Intermediate Language)
COM Marshaler Exception Manager Debug Engine
Code Manager
Garbage Collector
Class Loader
8
LIBRERÍAS DECLASES DEL FRAMEWORK .NET
System System.Net System.Reflection System.IO System.Security System.Text System.Threading System.Diagnostics System.Runtime. InteropServices System.Globalization System.Configuration System.Collections
9
ADO .NET: DATOS Y XML
ADO.NET: Data and XML
System.Data DataSet DataTable DataRow DataView System.Xml System.Xml.Schema System.Xml.Serialization
10FORMAS WEB Y SERVICIOS WEB XML
ASP.NET
System.Web
Services Description Discovery Protocols Caching Configuration Security SessionState UI HtmlControls WebControls
11
COMPILACIÓN EN C#
12
LECTURAS ADICIONALES
Capítulo Tema 2 1 Introducción a Microsoft .NET Introducción a Microsoft .NET Introducción a C# .NET Libro C# a fondo El lenguaje de Programación C# Filminas Autor Tom Archer JoséAntonio González Seco Ing. Ramón Roque Hernández Págs. 21 - 31 10 -21
1
Se recomiendan estas lecturas para dominar el ambiente del Framework .NET
13
HERRAMIENTAS DE DESARROLLO
Descargar Microsoft Visual Studio Versión Express en: http://www.microsoft.com/express/Downloa ds/#2010-Visual-CS / Microsoft .NET Framework SDK msdn.microsoft.com/net/ Mas informaciónhttp://www.microsoft.com/net/ Sharp Develop http://www.icsharpcode.net
14
•
• • •
Microsoft Visual Studio .NET
Crear proyecto
15
Crear un nuevo proyecto
Nombre del nuevo proyecto
Proyecto de la consola
16
EJECUTANDO UN PROGRAMA
Ejecuta el programa
Ventana de errores
17
LECTURAS ADICIONALES
Capítulo Tema 1 Primeros pasos Libro Autor Págs. 9 - 26 Manual de Microsoft VisualFrancisco Studio 2005. Express Charte Ojeda Edition
Se recomiendan estas lecturas para dominar el uso del Microsoft Visual Studio 2005
18
MÉTODOS DE LA CONSOLA
Console.Clear( ); // Limpia la pantalla
Para desplegar mensajes en la pantalla:
– Console.Write( ); – Console.WriteLine( );
Para capturar datos desde el teclado:
– Console.Read( ); – Console.ReadLine( );
19
MÉTODOS Write( )...
Regístrate para leer el documento completo.