BIT351Semester VI10 units48 solved questions585 study cardsFull study modes
The free sample is open to everyone. Sign in for 2 free weeks of every answer, flashcards and progress.
The .NET Framework is the base on which C# programs are built and run. This chapter explains how code is compiled and run, and the core C# features used in every ASP.NET Core project.
MSIL (Microsoft Intermediate Language, also called IL or CIL) is a CPU independent set of instructions. When you build a C# program, the compiler does not produce machine code. It produces MSIL plus metadata, which describes the types and members in the program. These are stored in an assembly (a .dll or .exe file).
The CLR (Common Language Runtime) is the engine that runs this code. It is the execution part of .NET.
How a program runs:
Main services of the CLR:
Because MSIL is not tied to a CPU, the same assembly can run on Windows, Linux or macOS when a suitable runtime is present.
A lambda expression is a short, unnamed function. It uses the operator => (read as "goes to"). The left side holds the parameters and the right side holds the expression or block.
Func<int, int> square = x => x * x;
Console.WriteLine(square(5)); // 25
var marks = new List<int> { 35, 80, 42, 90 };
var passed = marks.Where(m => m >= 40).ToList(); // 80, 42, 90
Lambdas are used with LINQ, delegates, events and callbacks. They keep the code short because no separate method is needed.
In asynchronous programming, a long task such as a file read, database call or web request does not block the running thread. The thread is free to do other work while it waits. C# uses the async and await keywords with the Task type.
public async Task<string> GetPageAsync(string url)
{
using var client = new HttpClient();
string html = await client.GetStringAsync(url); // thread is not blocked here
return html;
}
Why it is needed:
An async lambda is also allowed: async () => await Task.Delay(100).
NET Centric Computing for TU BIT is covered here in full, from syllabus notes to solved past questions. This subject has 10 chapters mapped to the official syllabus, and 48 past exam questions with written model answers. The opening of every note and answer is free, and the most-searched questions are free in full. A free account gets 2 free weeks of the whole program plus flashcards and progress tracking so weak topics come back before the exam.
This TU BIT NET Centric Computing guide covers Core .NET Framework Fundamentals, Object-Oriented Programming and Events, Data Access with ADO.NET and Entity Framework, ASP.NET Core Architecture and MVC Pattern, Dependency Injection and Application Configuration, State Management and HTTP Protocol, Security, Authentication and Authorization, Client-Side Technologies and Single Page Applications, and more, across 10 chapters. It includes model answers to 48 past exam questions, plus flashcards for quick revision.
NET Centric Computing has 10 chapters mapped to the official syllabus.
Yes. Each of the 48 past questions comes with a written model answer; the most-searched ones are free in full, the rest open with a free account's 2 free weeks or a pass.
Free to start. The opening of every note and answer is free, the most-searched questions are free in full, and a free account gets 2 free weeks of the whole program plus flashcards and progress tracking. After that a program pass keeps everything open.
Based on the official syllabus.