Hi:
I'm a VB.NET programmer who has made amazing progress in the C# world in
about two weeks.
I've come accross something that I can't figure out - I've checked MSDN and
Google extensively so I'm obviously not looking in the right area.
In VB.NET there is a simple function to tell if one string is contained
inside another. For example:
dim mytxt as string = "abcdef"
dim i as integer
i = InStr(mytxt,"c") // will return zero if the character "#" is not
in the string mytext or
// 3 - the position of the chracter in
this case.
I can't find a C# equivalent! (And I know it's there somewhere!)
Any help would be GREATLY appreciated!
Thanks,
Fred