C#
C#
NET
1. What is C#?
3. Object Orientation ?
4. What is encapsulation?
-The fundamental building block in C# is an encapsulated unit of data and func‐tions called a type.
-All Type whether they represent business objects , or are primitive types such as numbers, share the
same basic functionality.
7. Type Safety?
instances of types can interact only through protocols they define, وهذا يعني أن
-Static typing eliminates a large class of errors before a program is even run.
- code to be dynamically typed , via the dynamic keyword بأن تكون يسمحC# ال
because its type rules are strictly enforced (whether statically or at runtime)
8. Memory Management?
-C# does not eliminate pointers: it merely makes them unnecessary for most pro
9. Platform Support?
- A runtime can also include a higher-level application layer that contains libraries for developing rich-
client, mobile, or web applications .
it compiles source code into managed code, which is represented in Intermediate Language (IL).
-The CLR converts the IL into the native code of the machine, This is referred to as Just-in-Time (JIT)
compilation.
-The container for managed code is called an assembly. An assembly contains not
- A CLR always ships with a set of assemblies called a Base Class Library (BCL).
-A BCL also implements types that the C# language itself requires (for features such
as enumeration, querying, and asynchrony) and lets you explicitly access features of
the CLR, such as reflection and memory management.
13. Runtimes?
- A runtime consists of a CLR (with its BCL), plus an optional application layer specific to the kind of
application that you’re writing—web, mobile, client.
-When writing an application, you target a particular runtime, which means that
your application uses and depends on the functionality that the runtime provides.