Certificate Awarding Ceremony of C#.NET Applied OOP (Batch 01 to Batch 04)

Mr. Zunaid Ahmed Palak, M.P; Honorable State Minister; ICT Division, Ministry of Post, Telecommunication & Information Technology; Government of the People’s Republic of Bangladesh was graciously present as Chief Guest, and handed over the certificates to successful trainees. The ceremony was chaired by Mr. Md. Harunur Rashid, Additional Secretary, Information and Communication Technology Division. Mrs.

Read More

Dependency Injection using Ninject in ASP.NET MVC

What is Dependency Injection? In software engineering, dependency injection is a software design pattern that implements inversion of control for resolving dependencies. – Wikipedia. It makes software components are loosely coupled. Advantages of Dependency Injection • Flexibility to use alternative implementation of service. • Configurable & easy to use • Make system loosely couple •

Read More

Padding character with string

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Padding { class Program { static void Main(string[] args) { string str = “This is a text”; char padChar = ‘.’; Console.WriteLine(str.PadLeft(25, padChar)); Console.WriteLine(str.PadLeft(2, padChar)); Console.WriteLine(str.PadRight(25, padChar)); Console.WriteLine(str.PadRight(2, padChar)); str = “I am Mahedee hasan. Software Architect, Leadsoft Bangladesh Ltd”; Console.WriteLine((str.PadRight(25, padChar))); Console.WriteLine((str.PadRight(25,padChar)).Substring(0,24)+”…”); Console.ReadKey();

Read More

How to remove special character from Unicode string

Here is the sample code to remove special character from Unicode string. Sample Input: SG@%@sgs th? g#%@^@#$ chào^#^$#!abc35| _ sgs _35 hello world không gsg Sample Output: SG%sgs th? g#%^#$ chào^#^$#!abc35 sgs 35 hello world không gsg class Program { static void Main(string[] args) { string inputString = “SG@%@sgs thể g#%@^@#$ chào^#^$#!abc35| _ sgs _35

Read More