The function converted should like this,maybe
internal static void partstrlwr(ref string str)
{
CharEnumerator c = str.GetEnumerator();
str = string.Empty;
while (c.MoveNext())
{
if (!c.Current.Equals(' ') && !c.Current.Equals('='))
{
str += c.Current.ToString().ToLower();
}
else
{
str += c.Current.ToString();
}
}
}
I think just use "String.ToLower()" instead of the "partstrlwr",since no difference here beween this two in C#.