1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Overview of C#

Discussion in 'C#' started by Sanskruti, Apr 7, 2007.

  1. Sanskruti

    Sanskruti New Member

    Joined:
    Jan 7, 2007
    Messages:
    108
    Likes Received:
    17
    Trophy Points:
    0
    Occupation:
    Software Consultant
    Location:
    Mumbai, India
    C# is an object-oriented programming language developed by Microsoft Corporation . C# source code as well as those of other .NET languages is compiled into an intermediate byte code called Microsoft Intermediate Langauge. C# is primarily derived from the C, C++, and Java programming languages with some features of Microsoft's Visual Basic in the mix. C# is used to develop applications for the Microsoft .NET environment. .NET offers an alternative to Java development. Microsoft's Visual Studio .NET development environment incorporates several different languages including ASP.NET, C#, C++, and J# (Microsoft Java for .NET), all of which compile to the Common Language Runtime.

    A new form of iterator employs co-routines via a functional-style yield keyword similar to the one found in the Python language.
    1. Anonymous methods provide closure functionality.
    2. Generics or parameterized types support some features not supported by C++ templates such as type constraints on generic parameters. However, expressions cannot be used as generic parameters as in C++ templates. In contrast to the Java implementation, parameterized types are first class objects in the virtual machine, allowing for optimizations and preservation of type information.
    3. Nullable value types facilitate interaction with SQL databases. Sample nullable type declaration:
      int variableName = null;
    4. Partial types allow the separation of a class implementation into more than one source file. This feature was implemented primarily so Visual Studio generated code can be kept seperate from developer code.

    C# version 3.0 introduces several language extensions to support higher order, functional style class libraries. The extensions enable the construction of compositional APIs with the expressive power of query languages in areas such as relational databases and XML. C# 3.0 will include the following new features:
    1. Anonymous types: tuple types automatically inferred and created from object initializers.
    2. Object initializers ease construction and initialization of objects.
    3. Implicitly typed local variables permit the type of local variables to be inferred from the expressions used to initialize them.
    4. Implicitly typed arrays: a form of array creation and initialization that infers the element type of the array from an array initializer.
    5. Extension methods make it possible to extend existing types and constructed types with additional methods.
    6. Lambda expressions: an evolution of anonymous methods providing improved type inference and conversions to both delegate types and expression trees.
    7. Expression trees permit lambda expressions to be represented as data (expression trees) instead of as code (delegates).
    8. Query expressions provide a language integrated syntax for queries that is similar to relational and hierarchical query languages such as SQL and XQuery.
    Microsoft C# developers note that C# 3.0 is bytecode compatible with C# version 2.0. For the most part, enhancements comprise purely syntactic or compile-time improvements.

    History of C#



    C# was designed for developing components in a fully object-oriented manner as part of the Microsoft .NET initiative. C# debuted in the year 2000 at the Professional Developers Conference (PDC) where Microsoft founder Bill Gates was the keynote speaker. At the same time, Visual Studio .NET was announced.

    The primary architects of C# were Peter Golde, Eric Gunnerson, Anders Hejlsberg, Peter Sollichy, and Scott Wiltamuth. Of these, the principal designer of the the C# language was Anders Hejlsberg, a lead architect at Microsoft. Previously, he was a framework designer with experience with Visual J++ (Microsoft's old version of the Java language), Delphi, and Turbo Pascal.

    Both C# and the Common Language Infrastructure (CLI) have been submitted to international standards organizations European Computer Manufacturers Association (ECMA) and International Organization for Standardization (ISO) / International Electrotechnical Commission (IEC).
     
  2. rekha11

    rekha11 New Member

    Joined:
    Jan 31, 2008
    Messages:
    13
    Likes Received:
    3
    Trophy Points:
    0
    In June 2000, Microsoft announced both the .NET platform and a new programming language called C#.
    C# is a strongly-typed object-oriented language designed to give the optimum blend of simplicity,
    expressiveness, and performance.The C# language was built with the hindsight of many languages
    but most notably Java and C++.If the user has knows the concept of java then C# is quite easy to learn.
     
  3. fantascy

    fantascy New Member

    Joined:
    May 4, 2009
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    I've just learnt j2se, planing to go over to j2ee. Does c# contain the features of this two together. Is it better to learn c# than to learn java? If so why?
     
  4. dannyfiker

    dannyfiker New Member

    Joined:
    Apr 29, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Ethiopia
    I am going to use c# for development of e-learning system. Is C# better or I have to use another language?
     
  5. inaina

    inaina New Member

    Joined:
    Apr 27, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    please help me. i have this error log on my project solution
    thamk you

    System.NullReferenceException was unhandled
    Message="Object reference not set to an instance of an object."
    Source="MBSControls"
    StackTrace:
    at MBSControls.ListViewXTC.InitializeList(Object items) in C:\Projects\TimeSheet\MBSControls\ListViewXTC.cs:line 208
    at MBSControls.Forms.ListPageBase.InitializeList(ArrayList items) in C:\Projects\TimeSheet\MBSControls\Forms\ListPageBase.cs:line 163
     
  6. juliaandrews

    juliaandrews New Member

    Joined:
    May 12, 2011
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    0
    C# is an object-oriented programming language developed by Microsoft Corporation .And it is a multi-paradigm programming language.
    Thanks
     
  7. Scripting

    Scripting John Hoder

    Joined:
    Jun 29, 2010
    Messages:
    421
    Likes Received:
    57
    Trophy Points:
    0
    Occupation:
    School for life
    Location:
    /root
    2 words: Java sucks
     
  8. sbsl

    sbsl Banned

    Joined:
    Sep 20, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    Both are good. its better to learn c# before.... bcoz it helps u in learning java...
     
  9. sbsl

    sbsl Banned

    Joined:
    Sep 20, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0

    c# is a good language and not much difficult .its good choice.
     
  10. sbsl

    sbsl Banned

    Joined:
    Sep 20, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    sorry i dont have any knowledge
     
  11. donor

    donor Banned

    Joined:
    Jan 12, 2012
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    web developer
    Location:
    india
    yes m agree wod sbsl c# is quite a easy and very popular language :)
     
  12. amitets

    amitets New Member

    Joined:
    Jun 16, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    C# is an object oriented .net compatible language which is used for creating console application.
     

Share This Page