In the conversion process of a java to c# project, i have come to java's indexOf() function in string.java class, which takes in two integers (int ch, int fromIndex) and return some integer value for a char (i'm guessing its an ASCII value).

I need to know if there is a c# equivalent for java's indexOf() function.

String.IndexOf in the .NET Framework is essentialy the same thing as Java's String.indexOf, allowing for platform differences.

thanks gusano79, solved it. :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.