Tag: programming
-
Regular expression for US and Canada phone number
This a quick post regarding how to validate US and Canada phone number in very possible formats. Requirements: To determine whether a user entered a North American phone number in a common format, including the local area code. The supported formats are 1234567890, 123-456-7890, 123.456.7890, 123 456 7890, (123) 456 7890, and all related combinations.…
-
Replacing first occurrence of certain characters in MSSQL database
This post is regarding how to replace first occurrence of one or more characters from database table Column. Suppose we have table named User with columns Id, Name, Phone Number as shown in the figure below. And contains records as shown in figure below: Now what I required to accomplish is replace the first ‘-‘…
-
Getting started with Multifile assembly – Part II
Some brief before we continue Hi! In the last article on this topic here MULTIFILE ASSEMBLY part – I, I had talked conceptually about creating multi-file assembly and possible usages. In this post we will have more insights on the implementation part regarding multi-file assembly and using MEF to apply the concept practically in the…
-
Getting started with Multifile assembly
What is Multi-file assembly? It is an application assembly either web-based or desktop-based which spans across many files to support extensibility and dynamically adding new features. What is Modules? Modules means class files such as Program.cs or frmMain.cs, in context of assemblies. Usage of Multi-file assembly Using different modules written in different .NET based programming languages…