LEFT function in C# using SUBSTRING
  • I  am gonna show you how to create LEFT function  in C#
    First you need to create a static class and reference the namespace associated with it on web.config or app.config

    public static class StringExtensions {
        public static string Left(this string s, int left) {
            return s.Substring(0, left);
    To use it you can write something like this:
    string left = s.Left(number);


Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook


Popular Posts of the Week

    Optimum Creative