Preview

Csharp

Better Essays
Open Document
Open Document
1639 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Csharp
Introduction to C#
Anders Hejlsberg Distinguished Engineer Developer Division Microsoft Corporation

C# – The Big Ideas
The first component oriented language in the C/C++ family Everything really is an object Next generation robust and durable software Preservation of investment

A component oriented language
C# is the first “component oriented” language in the C/C++ family Component concepts are first class:
Properties, methods, events Design-time and run-time attributes Integrated documentation using XML

C# – The Big Ideas

Enables one-stop programming
No header files, IDL, etc. Can be embedded in web pages

Everything really is an object
Traditional views
C++, Java: Primitive types are “magic” and do not interoperate with objects Smalltalk, Lisp: Primitive types are objects, but at great performance cost

C# – The Big Ideas

C# unifies with no performance cost
Deep simplicity throughout system

Improved extensibility and reusability
New primitive types: Decimal, SQL… Collections, etc., work for all types

Robust and durable software
Garbage collection
No memory leaks and stray pointers

C# – The Big Ideas

Exceptions
Error handling is not an afterthought

Type-safety
No uninitialized variables, unsafe casts

Versioning
Pervasive versioning considerations in all aspects of language design

Preservation of Investment
C++ heritage
Namespaces, enums, unsigned types, pointers (in unsafe code), etc. No unnecessary sacrifices

C# – The Big Ideas

Interoperability
What software is increasingly about MS C# implementation talks to XML, SOAP, COM, DLLs, and any .NET language

Millions of lines of C# code in .NET
Short learning curve Increased productivity

Hello World using System; class Hello { static void Main() { Console.WriteLine("Hello world"); } }

C# Program Structure
Namespaces
Contain types and other namespaces

Type declarations
Classes, structs, interfaces, enums, and delegates

Members

You May Also Find These Documents Helpful

  • Satisfactory Essays

    I have learned few more advanced topics in c # programming Language in these two weeks. The topics are:…

    • 485 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    It is made up of a group of libraries running as a layer on top of the operating system which programmers can call on to add functionality to the program they are writing. It uses applications such as printing, mouse clicks, data saving, copy, paste and many more. The main advantage of these libraries are that they are already written, debugged and backwards compatible with older versions of programs using the .NET framework.…

    • 1025 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    Pt1420 Unit 7 Analysis

    • 737 Words
    • 3 Pages

    The most popular dynamic languages including Ruby, Python, PHP and JavaScript, which we can use as a server-side language through Node.js. Statically typed languages like Java, C and C++ are the most popular languages in CS programs, although Python has been gaining ground in recent years.…

    • 737 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Chapter 15 Chapter 16 Chapter 17 Chapter 18 Chapter 19 Chapter 20 Chapter 21 Chapter 22 Chapter 23 Chapter 24 Chapter 25 Chapter 26 Chapter 27 An Introduction to Hardware, Software, and the Internet An Introduction to Software Development Objects and Classes Algorithms Java Syntax and Style Data Types, Variables, and Arithmetic Boolean Expressions and if-else Statements Iterative Statements: while, for, do–while Implementing Classes and Using Objects Strings Class Hierarchies and Interfaces Arrays…

    • 3908 Words
    • 16 Pages
    Powerful Essays
  • Good Essays

    Comp 220

    • 1463 Words
    • 6 Pages

    This lab will explore the use of pointers in several ways. Pointers will be used to dynamically allocate memory for new class objects on demand from the user, and they will be used to access class-member functions. Pointer arithmetic will be used to access and sort class objects according to criteria explained in the lab.…

    • 1463 Words
    • 6 Pages
    Good Essays
  • Powerful Essays

    EAS230Syllabus

    • 1748 Words
    • 8 Pages

    C++ programming: editing, compiling, user I/O, variables (ints, doubles, char, strings, booleans), loops, decisions, functions, pointers, arrays, tables, databases, sorting.…

    • 1748 Words
    • 8 Pages
    Powerful Essays
  • Powerful Essays

    References: Drake, E., & Venit, S. (2007). Extended Prelude to Programming Concepts & Design (3rd ed.). New York, New York: Pearson, Addison Wesley.…

    • 1318 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Envisioning program components as objects that are similar to concrete objects in the real world is the hallmark of _____________.…

    • 4265 Words
    • 23 Pages
    Satisfactory Essays
  • Good Essays

    an error check was needed to check the validity of the hours entered. An error check…

    • 510 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Knowledge, experience, specification and implementation of design patterns. Domain Driven Design. UI Patterns (MVC, MVVM), Remoting, Patterns, Repository Patterns.…

    • 544 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Barbara Liskov

    • 399 Words
    • 2 Pages

    Liskov has led many significant projects, including the Venus operating system, a small, low-cost and interactive timesharing system; the design and implementation of CLU; Argus, the first high-level language to support implementation of distributed programs and to demonstrate the technique of promise pipelining; and Thor, an object-oriented database system. WithJeannette Wing, she developed a particular definition of subtyping, commonly known as the Liskov substitution principle. She leads the Programming Methodology Group at MIT, with a current research focus inByzantine fault tolerance and distributed computing.…

    • 399 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Unix Operating System

    • 5458 Words
    • 22 Pages

    Kernighan, Brian W., and Ritchie, Dennis M., the C Programming Language, Prentice-Hall Software Series, second edition, 1988.…

    • 5458 Words
    • 22 Pages
    Powerful Essays
  • Powerful Essays

    Lewis, J.P., & Neuman, U. (2003). Performance of Java versus C++. Last retrieved: 27-11-2006 from http://www.idiom.com/~zilla/Computer/javaCbenchmark.html…

    • 3420 Words
    • 14 Pages
    Powerful Essays
  • Better Essays

    L215 Report

    • 3708 Words
    • 15 Pages

    In any programming language, there are several data types that are available for programmers to use, such as integers, floating point numbers, strings or characters. Many applications need more complicated structures of data that can be added on a program-to-program basis; hence, the notion of data abstraction.…

    • 3708 Words
    • 15 Pages
    Better Essays
  • Good Essays

    The desire to use the power of information processing efficiently in problem solving has pushed the development of newer programming languages. The evolution of programming languages is typically discussed in terms of generation of languages. The first generation of Programming languages is machine language, which required the use of binary symbols (0s and 1s). Because this is the language of the CPU, text file that are translated into binary sets can be read by almost every computer system platform. Developers of programming languages attempted to overcome some of the difficulties inherent in machine language by replacing the binary digits with symbols that programmers could more easily understand. These second-generation languages use codes like A for add, MCV for move, and so on. Another term for these languages in assembly language, which comes from the programs (called assemblers) used to translate it into machine code. Systems software programs such as OSs and utility programs are often written in assembly languages.…

    • 452 Words
    • 2 Pages
    Good Essays

Related Topics