Pro C# with .NET 3.0 Special Edition

Total Page:16

File Type:pdf, Size:1020Kb

Pro C# with .NET 3.0 Special Edition Pro C# with .NET 3.0 Special Edition Andrew Troelsen Pro C# with .NET 3.0, Special Edition Copyright © 2007 by Andrew Troelsen All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher. ISBN-13: 978-1-59059-823-8 ISBN-10: 1-59059-823-7 Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1 Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. Lead Editor: Ewan Buckingham Technical Reviewer: Christophe Nasarre Editorial Board: Steve Anglin, Ewan Buckingham, Gary Cornell, Jason Gilmore, Jonathan Gennick, Jonathan Hassell, James Huddleston, Chris Mills, Matthew Moodie, Dominic Shakeshaft, Jim Sumser, Matt Wade Project Manager: Grace Wong Copy Edit Manager: Nicole Flores Copy Editors: Nicole Flores, Ami Knox Assistant Production Director: Kari Brooks-Copony Senior Production Editor: Kelly Winquist Compositor: Dina Quan Proofreader: Linda Seifert Indexer: Broccoli Information Management Artist: April Milne Cover Designer: Kurt Krames Manufacturing Director: Tom Debolski Distributed to the book trade worldwide by Springer-Verlag New York, Inc., 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax 201-348-4505, e-mail [email protected],or visit http://www.springeronline.com. For information on translations, please contact Apress directly at 2560 Ninth Street, Suite 219, Berkeley, CA 94710. Phone 510-549-5930, fax 510-549-5939, e-mail [email protected], or visit http://www.apress.com. The information in this book is distributed on an “as is” basis, without warranty. Although every precau- tion has been taken in the preparation of this work, neither the author(s) nor Apress shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this work. The source code for this book is available to readers at http://www.apress.com in the Source Code/ Download section. You will need to answer questions pertaining to this book in order to successfully download the code. I would like to dedicate this book to my mother, Mary Troelsen. Mom, thanks for all of your support over the years and the years to come. Oh yeah, and thanks for not busting my chops when I came home with the red Mohawk. Luv ya, Pooch Contents at a Glance About the Author ....................................................................xxxvii About the Technical Reviewer ..........................................................xxxix Acknowledgments .....................................................................xli Introduction ..........................................................................xliii PART 1 ■■■Introducing C# and the .NET Platform ■CHAPTER 1 The Philosophy of .NET .............................................3 ■CHAPTER 2 Building C# Applications............................................33 PART 2 ■■■ The C# Programming Language ■CHAPTER 3 C# Language Fundamentals ........................................65 ■CHAPTER 4 Object-Oriented Programming with C# 2.0..........................139 ■CHAPTER 5 Understanding Object Lifetime .....................................179 ■CHAPTER 6 Understanding Structured Exception Handling ......................197 ■CHAPTER 7 Interfaces and Collections .........................................221 ■CHAPTER 8 Callback Interfaces, Delegates, and Events .........................255 ■CHAPTER 9 Advanced C# Type Construction Techniques ........................289 ■CHAPTER 10 Understanding Generics ...........................................321 PART 3 ■■■Programming with .NET Assemblies ■CHAPTER 11 Introducing .NET Assemblies ......................................347 ■CHAPTER 12 Type Reflection, Late Binding, and Attribute-Based Programming ....391 ■CHAPTER 13 Processes, AppDomains, Contexts, and CLR Hosts ..................425 ■CHAPTER 14 Building Multithreaded Applications................................449 ■CHAPTER 15 Understanding CIL and the Role of Dynamic Assemblies .......................................................477 iv PART 4 ■■■Programming with the .NET Libraries ■CHAPTER 16 The System.IO Namespace ........................................517 ■CHAPTER 17 Understanding Object Serialization.................................545 ■CHAPTER 18 The .NET Remoting Layer..........................................565 ■CHAPTER 19 Building a Better Window with System.Windows.Forms .............605 ■CHAPTER 20 Rendering Graphical Data with GDI+ ...............................649 ■CHAPTER 21 Programming with Windows Forms Controls........................699 ■CHAPTER 22 Database Access with ADO.NET....................................759 PART 5 ■■■Web Applications and XML Web Services ■CHAPTER 23 ASP.NET 2.0 Web Pages and Web Controls .........................829 ■CHAPTER 24 ASP.NET 2.0 Web Applications .....................................889 ■CHAPTER 25 Understanding XML Web Services..................................919 PART 6 ■■■Programming with .NET 3.0 Extensions ■CHAPTER 26 Establishing a .NET 3.0 Programming Environment..................957 ■CHAPTER 27 Introducing Windows Presentation Foundation ......................969 ■CHAPTER 28 Introducing Windows Communication Foundation ..................1021 ■CHAPTER 29 Introducing Windows Workflow Foundation ........................1047 ■CHAPTER 30 C# 3.0 Language Features........................................1075 ■CHAPTER 31 An Introduction to LINQ...........................................1107 ■INDEX ...........................................................................1151 v Contents About the Author ....................................................................xxxvii About the Technical Reviewer ..........................................................xxxix Acknowledgments .....................................................................xli Introduction ..........................................................................xliii PART 1 ■■■Introducing C# and the .NET Platform ■CHAPTER 1 The Philosophy of .NET .........................................3 Understanding the Previous State of Affairs ...............................3 Life As a C/Win32 API Programmer . 3 Life As a C++/MFC Programmer ..................................4 Life As a Visual Basic 6.0 Programmer ..............................4 Life As a Java/J2EE Programmer...................................4 Life As a COM Programmer .......................................5 Life As a Windows DNA Programmer ...............................5 The .NET Solution.....................................................6 Introducing the Building Blocks of the .NET Platform (the CLR, CTS, and CLS) ............................................6 The Role of the Base Class Libraries ................................7 What C# Brings to the Table ............................................7 Additional .NET-Aware Programming Languages...........................8 Life in a Multilanguage World .....................................9 An Overview of .NET Assemblies .......................................10 Single-File and Multifile Assemblies ....................................11 The Role of the Common Intermediate Language .........................11 Benefits of CIL .................................................13 Compiling CIL to Platform-Specific Instructions ......................14 The Role of .NET Type Metadata .......................................14 The Role of the Assembly Manifest .....................................15 Understanding the Common Type System ...............................15 CTS Class Types ...............................................16 CTS Structure Types ............................................16 CTS Interface Types.............................................17 vii viii ■CONTENTS CTS Enumeration Types .........................................17 CTS Delegate Types ............................................17 CTS Type Members .............................................18 Intrinsic CTS Data Types.........................................18 Understanding the Common Language Specification ......................19 Ensuring CLS Compliance .......................................20 Understanding the Common Language Runtime ..........................20 The Assembly/Namespace/Type Distinction .............................22 Accessing a Namespace Programmatically .........................24 Referencing External Assemblies .................................25 Using ildasm.exe ....................................................26 Viewing CIL Code ...............................................27 Viewing Type Metadata..........................................28 Viewing Assembly Metadata......................................28 Deploying the .NET Runtime ...........................................29 The Platform-Independent Nature of .NET ...............................29 Summary ..........................................................31 ■CHAPTER 2 Building C# Applications.......................................33 Installing the .NET Framework 2.0 SDK..................................33 The C# Command-Line Compiler
Recommended publications
  • IJIRT | Volume 2 Issue 6 | ISSN: 2349-6002
    © November 2015 | IJIRT | Volume 2 Issue 6 | ISSN: 2349-6002 .Net Surbhi Bhardwaj Dronacharya College of Engineering Khentawas, Haryana INTRODUCTION as smartphones. Additionally, .NET Micro .NET Framework (pronounced dot net) is Framework is targeted at severely resource- a software framework developed by Microsoft that constrained devices. runs primarily on Microsoft Windows. It includes a large class library known as Framework Class Library (FCL) and provides language WHAT IS THE .NET FRAMEWORK? interoperability(each language can use code written The .NET Framework is a new and revolutionary in other languages) across several programming platform created by Microsoft for languages. Programs written for .NET Framework developingapplications. execute in a software environment (as contrasted to hardware environment), known as Common It is a platform for application developers. Language Runtime (CLR), an application virtual It is a Framework that supports Multiple machine that provides services such as Language and Cross language integration. security, memory management, and exception handling. FCL and CLR together constitute .NET IT has IDE (Integrated Development Framework. Environment). FCL provides user interface, data access, database Framework is a set of utilities or can say connectivity, cryptography, web building blocks of your application system. application development, numeric algorithms, .NET Framework provides GUI in a GUI and network communications. Programmers manner. produce software by combining their own source code with .NET Framework and other libraries. .NET is a platform independent but with .NET Framework is intended to be used by most new help of Mono Compilation System (MCS). applications created for the Windows platform. MCS is a middle level interface. Microsoft also produces an integrated development .NET Framework provides interoperability environment largely for .NET software called Visual between languages i.e.
    [Show full text]
  • Wykład IV: Platforma .Net
    ModelowanieModelowanie ii ProgramowanieProgramowanie ObiektoweObiektowe Wykład IV: Platforma .Net 28 październik 2013 Platforma .NET ● Platforma .NET według Microsoft to integralny komponent systemu Windows umożliwiający tworzenie i uruchamianie nowoczesnych aplikacji i usług sieciowych. Cele realizowane w ramach platformy: – Dostarcza kompletne zorientowane obiektowo środowisko niezależnie czy obiekt: przechowywany i uruchamiany lokalnie, wykonywany lokalnie i rozproszony w Internecie czy wykonywany zdalnie – Środowisko wykonawcze minimalizujące konflikty podczas wytwarzania i wersjonowania oprogramowania – Środowisko wykonawcze wspierające bezpieczne i wydajne wykonanie kodu – Zapewnia spójność pomiędzy aplikacjami przeznaczonymi na platformę Windows czy opartymi na technologiach Web'owych Platforma .NET - komponenty ● Wspólne środowisko uruchomieniowe (ang. Common Language runtime) – Agent zarządzający kodem podczas wykonania – Zarządzanie pamięcią – Zarządzanie wątkami – Zdalność (ang. remoting) – Bezpieczeństwo (typowanie – CTS – sprawdzanie typów, dokładność, zarządzanie zasobami, rejestrem itd.) – Łączenie wielu języków w jednym projekcie (język → narzędzie) – Wydajność – kod nie jest interpretowany, a kompilowany podczas wykonania (JIT – just-in- time) Platforma .NET - komponenty ● .NET Framework class library – Kompleksowa, zorientowana obiektowo, re- używalna kolekcja typów zintegrowana z CLR – pozwalająca na łatwe pisanie aplikacji ogólnego przeznaczenia: ● aplikacje konsolowe ● okienkowe (WinForms, WPF) ● Web'owe (ASP.NET)
    [Show full text]
  • Portable Microsoft Visual Foxpro 9 SP2 Serial Key Keygen
    Portable Microsoft Visual FoxPro 9 SP2 Serial Key Keygen 1 / 4 Portable Microsoft Visual FoxPro 9 SP2 Serial Key Keygen 2 / 4 3 / 4 License · Commercial proprietary software. Website, msdn.microsoft.com/vfoxpro. Visual FoxPro is a discontinued Microsoft data-centric procedural programming language that ... As of March 2008, all xBase components of the VFP 9 SP2 (including Sedna) were ... CLR Profiler · ILAsm · Native Image Generator · XAMLPad .... Download Microsoft Visual FoxPro 9 SP1 Portable Edition . Download ... Visual FoxPro 9 Serial Number Keygen for All Versions. 9. 0. SP2.. Download Full Cracked Programs, license key, serial key, keygen, activator, ... Free download the full version of the Microsoft Visual FoxPro 9 Windows and Mac. ... 9 Portable, Microsoft Visual FoxPro 9 serial number, Microsoft Visual FoxPro 9 .... Download Microsoft Visual FoxPro 9 SP 2 Full. Here I provide two ... Portable and I include file . 2015 Free ... Visual FoxPro 9.0 SP2 provides the latest updates to Visual FoxPro. ... autodesk autocad 2010 keygens only x force 32bits rh.. ... cs5 extended serial number keygen photo dvd slideshow professional 8.23 serial ... canadian foreign policy adobe acrobat 9 standard updates microsoft money ... microsoft visual studio express 2012 for web publish website microsoft office ... illustrator cs5 portable indowebsteradobe illustrator cs6 portable indowebster .... Download Microsoft Visual FoxPro 9 SP 2 Full Intaller maupun Portable. ... serial number Visual FoxPro 9 SP2 Portable, keygen Visual FoxPro 9 SP2 Portable, .... Microsoft Visual FoxPro 9.0 Service Pack 2.0. Important! Selecting a language below will dynamically change the complete page content to that .... Microsoft Visual FoxPro all versions serial number and keygen, Microsoft Visual FoxPro serial number, Microsoft Visual FoxPro keygen, Microsoft Visual FoxPro crack, Microsoft Visual FoxPro activation key, ..
    [Show full text]
  • 1 Proyecto De Fin De Carrera Entorno De Monitorización De Sistemas
    Proyecto de fin de carrera Entorno de monitorización de sistemas informáticos embarcados mediante pantallas táctiles. Versión: 1.0 Creación: Diciembre 2010 Autor: Vicente García Adánez Tutor: Juan Llorens Morillo 1 Entorno de monitorización de sistemas informáticos embarcados mediante pantallas táctiles García Adánez, V. Esta página ha sido dejada en blanco intencionadamente. 2 Entorno de monitorización de sistemas informáticos embarcados mediante pantallas táctiles García Adánez, V. RESUMEN: Este proyecto ha sido realizado para ser presentado como proyecto de fin de carrera en colaboración con la empresa finlandesa Mobile Net Control (MNC de ahora en adelante) con sede en Mariehamn, capital de las islas Åland, provincia de Finlandia, gracias a la obtención de una beca Erasmus para el año 2010. MNC en una de sus áreas provee a sus clientes de ordenadores para sus barcos creando un sistema de comunicación en ellos. Además de mantenerlos funcionando correctamente se encarga de que la información y configuración en los equipos no se pierda y para ello realiza a través de internet copias de seguridad de sus archivos. Como utilidad para sus barcos ha creído conveniente desarrollar una aplicación software fácil e intuitiva desde la que se pueda monitorizar el estado de los ordenadores que pueda tener su barco. Ésta se encargará de comprobar que funcionan correctamente y en caso de que no lo hagan ayudará a solucionarlo. El objetivo de este proyecto es por tanto la realización de una aplicación para pantalla táctil que permita monitorizar el estado de diferentes componentes en un barco desde el lugar donde esté instalada. Su uso está destinado a la persona responsable de este cometido, que bien puede ser un capitán como cualquier otra persona del barco no relacionada con la informática.
    [Show full text]
  • Yohan J. Rodríguez Viveros
    Yohan J. Rodríguez Viveros Living in: Hermosillo, Sonora. México Email: [email protected] Blog: https://www.hasdid.com Skype: yohan.jasdid Profile 15 Years experience in software development. Use of multiple technologies and tools. Passionate about code and science. Book/Article writer and researcher. Always looking for interesting problems to solve. Full-Stack coder. Always learning technologies to contribute code in desktop/web applications, back-end, front-end, web/local/cloud services, Api’s and scientific computing Employment History Developer IV Tiempo Development Sep 2015 - Present | Hermosillo, Sonora Developer of a security company product. Development and maintenance of the system features, releases, policy deployment, support to customers, documentation and platform infrastructure. Main responsibil- ities include: Development and maintenance of the system features like Database support. Consists in the ability to scan database products of multiple types like Oracle, MS SQL Server, MySQL and DB2 to execute stan- dard security policies against those databases to discover and re-mediate security issues. Platforms support. Consists in the ability to scan multiple operating system like multiple versions of Windows, multiple types of Linux distributions, multiple types of Unix, OSx and embedded OS devices to execute standard policies and discover security issues. Standard security policies includes DISA, CIS and PCI security standards. Devices support. Consists in the ability to scan multiple types of industrial control systems
    [Show full text]
  • Programming with Windows Forms
    A P P E N D I X A ■ ■ ■ Programming with Windows Forms Since the release of the .NET platform (circa 2001), the base class libraries have included a particular API named Windows Forms, represented primarily by the System.Windows.Forms.dll assembly. The Windows Forms toolkit provides the types necessary to build desktop graphical user interfaces (GUIs), create custom controls, manage resources (e.g., string tables and icons), and perform other desktop- centric programming tasks. In addition, a separate API named GDI+ (represented by the System.Drawing.dll assembly) provides additional types that allow programmers to generate 2D graphics, interact with networked printers, and manipulate image data. The Windows Forms (and GDI+) APIs remain alive and well within the .NET 4.0 platform, and they will exist within the base class library for quite some time (arguably forever). However, Microsoft has shipped a brand new GUI toolkit called Windows Presentation Foundation (WPF) since the release of .NET 3.0. As you saw in Chapters 27-31, WPF provides a massive amount of horsepower that you can use to build bleeding-edge user interfaces, and it has become the preferred desktop API for today’s .NET graphical user interfaces. The point of this appendix, however, is to provide a tour of the traditional Windows Forms API. One reason it is helpful to understand the original programming model: you can find many existing Windows Forms applications out there that will need to be maintained for some time to come. Also, many desktop GUIs simply might not require the horsepower offered by WPF.
    [Show full text]
  • NET Reverse Engineering
    .NET.NET ReverseReverse EngineeringEngineering Erez Metula, CISSP Application Security Department Manager Security Software Engineer 2B Secure ErezMetula @2bsecure.co.il Agenda • The problem of reversing & decompilation • Server DLL hijacking • Introduction to MSIL & the CLR • Advanced techniques • Debugging • Patching • Unpacking • Reversing the framework • Exposing .NET CLR vulnerabilities • Revealing Hidden functionality • Tools! The problem of reversing & decompilation • Code exposure • Business logic • Secrets in code – passwords – connection strings – Encryption keys • Intellectual proprietary (IP) & software piracy • Code modification • Add backdoors to original code • Change the application logic • Enable functionality (example: “only for registered user ”) • Disable functionality (example: security checks) Example – simple reversing • Let ’s peak into the code with reflector Example – reversing server DLL • Intro • Problem description (code) • Topology • The target application • What we ’ll see Steps – tweaking with the logic • Exploiting ANY server / application vulnerability to execute commands • Information gathering • Download an assembly • Reverse engineer the assembly • Change the assembly internal logic • Upload the modified assembly, overwrite the old one. • Wait for some new action • Collect the data … Exploiting ANY server / application vulnerability to execute commands • Example application has a vulnerability that let us to access th e file system • Sql injection • Configuration problem (Open share, IIS permissions,
    [Show full text]
  • Appendixes APPENDIX A
    PART 8 Appendixes APPENDIX A COM and .NET Interoperability The goal of this book was to provide you with a solid foundation in the C# language and the core services provided by the .NET platform. I suspect that when you contrast the object model provided by .NET to that of Microsoft’s previous component architecture (COM), you’ll no doubt be con- vinced that these are two entirely unique systems. Regardless of the fact that COM is now considered to be a legacy framework, you may have existing COM-based systems that you would like to inte- grate into your new .NET applications. Thankfully, the .NET platform provides various types, tools, and namespaces that make the process of COM and .NET interoperability quite straightforward. This appendix begins by examin- ing the process of .NET to COM interoperability and the related Runtime Callable Wrapper (RCW). The latter part of this appendix examines the opposite situation: a COM type communicating with a .NET type using a COM Callable Wrapper (CCW). ■Note A full examination of the .NET interoperability layer would require a book unto itself. If you require more details than presented in this appendix, check out my book COM and .NET Interoperability (Apress, 2002). The Scope of .NET Interoperability Recall that when you build assemblies using a .NET-aware compiler, you are creating managed code that can be hosted by the common language runtime (CLR). Managed code offers a number of ben- efits such as automatic memory management, a unified type system (the CTS), self-describing assemblies, and so forth. As you have also seen, .NET assemblies have a particular internal compo- sition.
    [Show full text]
  • Special Characters Numbers
    Index ■Special Characters AddServiceEndpoint( ) member, ServiceHost type, #define, preprocessor directive, 317–319 1032 #elif, preprocessor directive, 317–318 ADO.NET #else, preprocessor directive, 317–318 additional namespaces, 763–764 #endif, preprocessor directive, 317–318 vs. ADO classic, 759–760 #endregion, preprocessor directive, 317 application configuration files, 769–770 #if, preprocessor directive, 317–318 asynchronous data access, 792–793 #region, preprocessor directive, 317 autogenerated data components, 824–825 #undef, preprocessor directive, 317–319 autogenerating SQL commands, 816–817 % modulo operator, C#, 1097 autoincrementing, 797 & operator, pointer types, 312–313 binding DataTables to user interfaces, 804, 806 * operator, pointer types, 312–313 Command object, 781–782 ?? operator, 133 connected layer, 778 += operator, 610 connected vs. disconnected layer, 760 <%@Page%> directive attribute, ASP.NET, 846 connecting to database, Visual Studio 2005, 776 <%Import%> directive, ASP.NET, 846–847 connection objects, 779–780 => token, 1098 ConnectionStringBuilder object, 780–781 ? suffix, nullable types, 131 connectionStrings element, application configuration, 774–775 ■Numbers data access libraries, 1130 data adapter objects, 811–812 3D graphics graphical service, WPF, 1012 data providers, 760, 762 3D rendered animation, 970 data wizards, 822–825 100% code approach, 1048 DataColumn objects, 796, 798 ■ DataRelation objects, 817–820 A DataRow objects, 798–799, 801 A# programming language, 8 DataRow.RowState property, 799–800 Abort(
    [Show full text]
  • Microsoft Visual C# 2010 Step by Step Ebook
    Table of Contents Acknowledgments ................................................. xvii Introduction ............................................. xix Who This Book Is For................................................ .xix Finding Your Best Starting Point in This Book............................ xx Conventions and Features in This Book ................................ .xxi Conventions .................................................. .xxi Other Features ................................................ xxii Prerelease Software ................................................. xxii Hardware and Software Requirements ................................ xxii Code Samples ..................................................... .xxiii Installing the Code Samples.................................... .xxiii Using the Code Samples....................................... .xxiii Uninstalling the Code Samples ................................. .xxix Find Additional Content Online....................................... xxx Support for This Book ............................................... xxx Questions and Comments ...................................... xxx Introducing Microsoft Visual C# and Microsoft Visual Studio 2010 Welcome to C# ............................................ 3 Beginning Programming with the Visual Studio 2010 Environment......... 3 Writing Your First Program............................................ 8 Using Namespaces.................................................. 14 Creating a Graphical Application.....................................
    [Show full text]
  • Silverlight for Windows Embedded Developer's Guide 4
    Silverlight for Windows Embedded Developer’s Guide Published: January 2012 Applies to: Windows Embedded Compact 7 Abstract This paper is a comprehensive introduction to developing Silverlight for Windows Embedded applications. It describes the programming model and design workflow in Silverlight for Windows Embedded. It covers the following concepts: How to provide safe implicit-type conversion of generic objects How to work with visual hosts and visual trees How to handle events in Silverlight for Windows Embedded This paper includes tutorials that show you how to create applications, create custom user controls, and implement hardware acceleration for graphics. These tutorials require Visual Studio 2008, Windows Embedded Compact 7, an OS image and a development device or virtual CEPC. To create XAML source files for your UI design, you also need Microsoft Expression Blend 3 or another XAML editor. © 2012 Microsoft. All rights reserved. Contents Introduction .......................................................................................................................................... 4 Overview .............................................................................................................................................. 4 Features and Benefits of Silverlight for Windows Embedded Development Framework ...................... 5 Supported Silverlight UI Features ...................................................................................................... 6 Programming Model in Silverlight for Windows Embedded
    [Show full text]
  • Reiter István
    Reiter István C# 2009, 0.91 verzió 2 Tartalomjegyzék 1. Bevezet ő…………………………………………………………………………….......8 1.1. A jegyzet jelölései…………………………………………………………………8 1.2. Jogi feltételek………………………………………………………………………8 2. Microsoft .NET Framework…………………………………………………………...9 2.1. A .NET platform…………………………………………………………………….9 2.1.1. MSIL/CIL……………………………………………………………………...9 2.1.2. Fordítás/futtatás…………………………………………………………….9 2.1.3. BCL. …………………………………………………………………………10 2.2. A C# programozási nyelv……………………………………………………….10 2.3. Alternatív megoldások…………………………………………………………10 2.3.1. SSCLI………………………………………………………………………10 2.3.2. Mono…………………………………………………………………………10 2.3.3. DotGNU……………………………………………………………………..10 3. Fejleszt ői környezetek………………………………………………………………..12 3.1. Microsoft Visual Studio…………………………………………………………12 3.2. SharpDevelop…………………………………………………………………….13 3.3. MonoDevelop……………………………………………………………………..14 4. “Hello C#!”……………………………………………………………………………..16 4.1. A C# szintaktikája………………………………………………………………..17 4.1.1. Kulcsszavak……………………………………………………………….17 4.1.2. Megjegyzések……………………………………………………………..18 4.2. Névterek…………………………………………………………………………...18 5. Változók………………………………………………………………………………...20 5.1. Típusok…………………………………………………………………………….20 5.2. Lokális változók………………………………………………………………….21 5.3. Referencia- és értéktípusok……………………………………………………21 5.4. Boxing és Unboxing…………………………………………………………….22 5.5. Konstansok……………………………………………………………………….23 5.6. A felsorolt típus…………………………………………………………………..23 5.7. Null típusok………………………………………………………………………..24 6. Operátorok……………………………………………………………………………..25 6.1.
    [Show full text]