String comparision method return string.
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Is there any method which will compare two strings and returns the difference between both strings ? eg. string str1 = "123"; string str2 = "12345"; in this case result should be "45".
-
Is there any method which will compare two strings and returns the difference between both strings ? eg. string str1 = "123"; string str2 = "12345"; in this case result should be "45".
Hi, You can use -
string result = str2.Replace(str1,"")
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
Anant Y. Kulkarni