Currently browsing tag

String

StringConcat

String Vs StringBuilder

Most of the people use string everywhere in their code. Actually when doing string concatenation, do you know what exactly you are doing? It has a big drawback mainly in concatenation which can be overcome by StringBuilder. It will give a vast improvement in performance when you use concatenation of …

String To Integer and Integer to String Conversion in C

String To Integer and Integer to String Conversion in C In modern languages like Java, C# etc., there is a provision of function to handle String to Integer and Integer to String conversion. But in case of C, you should explicitly convert. String to Integer Conversion String is a array …

Difference between string and System.String

  In C#  for the CLR types actually there are aliases (synonyms) definitions. So int = System.Int32 short = System.Int16 string = System.String They have the keywords because they are easier to remember and programmers coming from other languages like c/c++ would also be familiar with these types. They may be …

String Tokenizer

This is a simple implementation of a String Tokenizer in C#. The target string to be tokenized and the tokens as char array can be used to create an instance of String Tokenizer. using System; using System.Collections; using System.Text; namespace StringLibrary { /// <summary> /// A String Tokenizer that accepts …