Category Archives: Programming

Interface in C# + abstract in C#

Interface always starts with I . It is the naming convention.

 

In a more basic way to explain: An interface is sort of like an empty muffin pan. It’s a class file with a set of method definitions that have no code.

An abstract class is the same thing, but not all functions need to be empty. Some can have code. It’s not strictly empty.

Why differentiate: There’s not much practical difference in Python, but on the planning level for a large project, it could be more common to talk about interfaces, since there’s no code. Especially if you’re working with Java programmers who are accustomed to the term.

shareimprove this answer

Example:

Explicit Interface Implementation:

 

Interface vs Abstract

 

 

Collection Initializer

codes:

 

C# Object Initializer

https://www.tutorialspoint.com/csharp_online_training/c_object_initializer.asp

 

 

Best:

From the best video and little bit mosh I have written the code below:

without object initializer:

 

with object initializer:

 

 

with object initializer:

 

 

 

 

Constructor in C#

code:

https://www.dotnetperls.com/constructor

 

https://www.tutorialspoint.com/csharp_online_training/c_constructors.asp

Extension Methods in C# 3.0

program.cs

StaticClass.cs

TestExtensionMethods.cs

 

 

 

 

 

 

 

output:

 

Gridview CRUD with Visual Studio

HTML 5 Template Creation With Visual Studio

ASP.NET Master Page Concept in a nutshell !!

Opening existing Project for previous website :
File->Open->Website
(Opening the whole directory created from an empty website)

 

 

LICT C#, OOP and .NET Syllabus

C# Part (Imran Sir):
Objects & Classes

Constructor
Destructor
Static
Polymorphism
Abstraction
Inheritance
Property
Generics
Exception Handling
Access Modifier
Interface
Encapsulation
Commandline
Aggregation
Method Hiding
base
seal
Implicit Explicit Convert
Boxing Unboxing
Ref and Out
Foreach
Array
Enum
String Buffer, String Builder
Partial Class
Partial Method
Delegates
Multicast Delegates
Lambda Expresssion

ASP.NET Part (Imran Sir):
HTML
CSS
Master Page
Session
Database Insert, Login, Registration, Logout using visual studio (SqlData Reader)
Calendar Events
Validation
Ado.net
CRUD automatically(with built in process)
CRUD manually(without builtin toolbox- It was H.W)
Data Bound Control
Web Forms

Excel (Ameer Sir):
Min, Max, Average, Count, Present, Past
Vlookup, COUNTIF, Conditional Formatting

SQL (Protap Sir):
DDL, DML
Constraint
Inner Join/Equi Join,
Primary Key, Foreign Key
Aggregate, Group BY
Outer Join – Left Outer Join, Right Outer Join, Full Join,
Self Join

Sub-query, Store Procedure
ADO.NET, Regi System, Login System

C# part(Protap sir):
Func, Action, Anonymous Function, Object Initializer, Collection Initializer
delegates, Lambda

IEnumerable, IQueryable, Anonymous Type, Var, Boxing Unboxing

ASP.NET(Protap Sir):

ASP.NET MVC(Protap Sir):

MVC

Entity Framework
– Codefirst Approach

 

Assesment:
1 Exam was on OOP basics(50 marks)
2 Assignment:
1st was on basic switch, if else etc.
2nd was on OOP and little more advance topic of C# with out/ref
3rd Class Work by Protap Sir.. To write some sql queries [29.10.2017]
4th Assesment on LINQ  28.11.2017

Registration System Using ASP.NET using SQL Database

ASP.NET Master Page Creation

 

 

 

 

 

String vs string in c#

https://stackoverflow.com/questions/7074/what-is-the-difference-between-string-and-string-in-c/19729734

Function in C#

 

using parameter and return type

 

Java vs C# Similarity

https://www.harding.edu/fmccown/java_csharp_comparison.html

Enum in C#