Answers for "string c# difference between two strings"

C#
1

get text between two strings c#

public string Between(string STR , string FirstString, string LastString)
    {       
        string FinalString;     
        int Pos1 = STR.IndexOf(FirstString) + FirstString.Length;
        int Pos2 = STR.IndexOf(LastString);
        FinalString = STR.Substring(Pos1, Pos2 - Pos1);
        return FinalString;
    }
Posted by: Guest on August-25-2021
3

What is the difference between String and string in C#?

string is an alias in C# for System.String.
So technically, there is no difference. It's like int vs. System.Int32

https://stackoverflow.com/questions/7074/what-is-the-difference-between-string-and-string-in-c
Posted by: Guest on November-16-2020

Code answers related to "string c# difference between two strings"

C# Answers by Framework

Browse Popular Code Answers by Language