The course covers the concepts of cross-platform web application development using the ASP.NET Core MVC framework using C# programming Language.
CSC378Semester VI3 credit hours9 units63 solved questions820 study cardsFull study modes
The course covers the concepts of cross-platform web application development using the ASP.NET Core MVC framework using C# programming Language.
The free sample is open to everyone. Sign in for 2 free weeks of every answer, flashcards and progress.
This unit lays down the C# language vocabulary that the rest of the course assumes: the .NET Framework and its runtime, the everyday language constructs, the object oriented features (constructors, properties, inheritance, interfaces, delegates), and the functional and safety features (generics, LINQ, exceptions, attributes, async/await) that ASP.NET Core code is written in.
The .NET Framework is a software framework designed and developed by Microsoft. Its first version, 1.0, was released in 2002, and it is used to build Windows form based applications, web based applications, and web services. The framework supports more than 60 programming languages, of which 11 are designed and maintained by Microsoft, including C#, VB.NET, C++/CLI and JScript.NET.
The framework has three main layers:
Code written in any .NET compliant language is compiled into MSIL (Microsoft Intermediate Language), packaged inside an assembly, following the rules of the Common Type System (CTS) and Common Language Specification (CLS). MSIL is the language the CLR understands. At execution time, the CLR's just in time (JIT) compiler translates this IL into native binary code for the machine it is running on, and the resulting assemblies are loaded into memory.
Compilation can target a Debug or a Release configuration. A Debug build produces an unoptimized assembly with debug symbols attached, which makes step through debugging possible. A Release build performs full optimization and strips out the debug symbols, producing smaller, faster code intended for deployment.
C# supports the usual value types (int, short, long, char, bool, float, decimal, double), string, and object. A variable is declared with type name = value;, for example int x = 5;.
Conditional execution is expressed with if, if...else, if...else if, and switch. Repetition is expressed with for, while, do...while, and foreach, the last of which walks every element of a collection:
using System;
namespace ForEachDemo
{
class Program
{
static void Main(string[] args)
{
string[] names = new string[] { "Alpha", "Beta", "Gamma" };
foreach (string name in names)
{
Console.WriteLine(name);
}
}
}
}
A constructor is a special method that is invoked automatically whenever an instance of a class is created. It shares the class's name, never declares a return type (not even void), and is used to give a new object its initial state. A class may declare any number of constructors as long as their parameter lists differ; a constructor with no parameters is a default constructor, and one with at least one parameter is a parameterized constructor.
public class Student
{
public string Name;
public int Id;
public Student(string name, int id)
{
this.Name = name;
this.Id = id;
}
public static void Main()
{
Student obj = new Student("Sagar", 1);
Console.WriteLine("Name=" + obj.Name + " Id=" + obj.Id);
}
}
Properties expose an object's data through get and set accessors, giving more control over how a value is read or written than a plain public field would. A property can wrap a private backing field, or be written as an auto-property when no extra logic is needed.
public class SampleClass
{
private int sample;
public int SampleProperty
{
get { return sample; }
set { sample = value; }
}
public int AutoProperty { get; set; }
}
An array is declared as type[] name; and can be initialized with new type[size], an explicit size and value list, or an implicit list: int[] arr = {1, 2, 3, 4, 5};. A multi-dimensional array adds a comma inside the brackets, for example int[,] arr = new int[3, 2];. A jagged array is an array of arrays, declared with two sets of brackets, where each inner array can have its own length:
int[][] jagged = new int[3][];
jagged[0] = new int[] { 1, 2, 3, 4, 5 };
jagged[1] = new int[] { 4, 10 };
jagged[2] = new int[] { 4, 5, 6, 7 };
Arrays of string follow the same rules, for example string[] names = new string[4];.
NET Centric Computing for TU BSc CSIT is covered here in full, from syllabus notes to solved past questions. This subject has 9 chapters mapped to the official syllabus, and 63 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 BSc CSIT NET Centric Computing guide covers Language Preliminaries, Introduction to ASP.NET, HTTP and ASP.NET Core, Creating ASP.NET core MVC applications, Working with Database, State Management on ASP.NET Core Application, Client-side Development in ASP.NET Core, Securing in ASP.NET Core Application, and more, across 9 chapters. It includes model answers to 63 past exam questions, plus flashcards for quick revision.
NET Centric Computing has 9 chapters mapped to the official syllabus.
Yes. Each of the 63 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.