what we have to know in c#
what a beginner of c# should get into
Program structure Namespaces Data types Variables Operators and expressions Enumerations Statements Classes and structs Modifiers Properties Interfaces Function parameters Arrays Indexers Boxing and unboxing Delegates Inheritance and polymorphism
Things which are common in C++ and C#. Concepts like garbage collection, threading, file processing etc. Data type conversions Exception handling .NET library
please put more concentration on OOPs Concepts Please put concentration on databse connections and manipulations please put more concentration on reusability options please try to do one example on each concept and then try in real time
lets see some imp points while dealing with c#
Like C++, C# is case-sensitive. Semi colon (;) is the statement separator. Unlike C++, there are no separate declaration (header) and implementation (CPP) files in C#. All code (class declaration and implementation) is placed in one file with extension cs.
Every class is packaged into a namespace.
In .NET library, System is the top level namespace in which other namespaces exist.
The #include directive is replaced with using keyword, which is followed by a namespace name
All types of C# are derived from a base class object.
Values types are those data types which are allocated in stack. They include:
All basic or built-in types except strings Structs Enum types
Reference types are allocated on heap and are garbage collected when they are no longer being used. They are created using new operator
Reference types include:
Classes Interfaces Collection types like Arrays String
Enumerations in C# are defined through a keyword enum.
Objects of classes are allocated in heap, and are created using new, where as structs are allocated in stack.
you write Get and Set methods in c3 for properties
public, private ,protected etc are access modifiers
you use this sealed keyword for the classes which you don't want to be inherited from.
An interface is the abstract base class containing only the function signatures whose implementation is provided by the child class.
Arrays are allocated in heap and thus are reference types.
Indexer is used to write a method to access an element from a collection, by straight way of using [], like an array.
packing of basic or primitive type into an object is called boxing, whereas the reverse of this known as unboxing.
Please be perfect in all point as a part of coding aswell if u do so no one can beat u friends
|
No responses found. Be the first to respond and make money from revenue sharing program.
|