- This summary
- +380.000 other summaries
- A unique study tool
- A rehearsal system for this summary
- Studycoaching with videos
A snapshot of the summary - moc programming in c# 20483b
1 module 1
The .NET Framework 4.5 provides three principal elements:The Common Language Runtime (CLR).
The .NET Framework class library.
A collection of development frameworks.
The CLR manages the execution of code and simplifies the development process by providing a robust and highly secure execution environment that includes:• Memory management.
The .NET Framework provides several development frameworks that you can use to build common application types, including:Desktop client applications, by using Windows Presentation Foundation (WPF).
Windows 8 desktop applications, by using XAML.
Server-side web applications, by using Active Server Pages (ASP.NET) Web Forms or ASP.NET MVC.
Service-oriented web applications, by using Windows Communication Foundation (WCF).
Long-running applications, by using Windows services.
Visual C# is a type-safe language, which means that?the compiler guarantees that values stored in variables are always of the appropriate type.
Operators fall into the following three categories:• Unary. This type of operator operates on a single operand. For example, you can use the - operator as a unary operator. To do this, you place it immediately before a numeric operand, and it converts the value of the operand to its current value multiplied by –1.
• Binary. This type of operand operates on two values. This is the most common type of operator, for example, *, which multiplies the value of two operands.
• Ternary. There is only one ternary operator in Visual C#. This is the ? : operator that is used in conditional expressions.
Which rules apply to identifiers?
An identifier can only contain letters, digits, and underscore characters.
An identifier must start with a letter or an underscore.
An identifier for a variable should not be one of the keywords that Visual C# reserves for its own use.
can u use an unassigned variable?Visual C# does not allow you to use an unassigned variable.
When the compiler sees the var keyword...it uses the value that is assigned to the variable to determine the type.
There are two types of conversions in the .NET Framework:•
Implicit conversion, which is automatically performed by the CLR on operations that are guaranteed to succeed without losing information.
Explicit conversion, which requires you to write code to perform a conversion that otherwise could lose information or produce an error.
Visual C# prohibits implicit conversions that:lose precision