I need to implement string.IndexOf functionality without using any c# string search related built in methods.
Could you suggest a simple algorithm for this. Search does not involve really large strings. you can assume the maximum lenghth of the string to be search as 1000 characters.
Since this sounds like homework, I’ll provide guidance instead of a solution. There is a great overview of string search algorithms on Wikipedia:
http://en.wikipedia.org/wiki/String_searching_algorithm
Try implementing the Naïve string search as a good introduction to the subject.