Closed ajboni closed 9 years ago
What is the actual name of the field? "notificationTime"? or?
yup, notificationTime, just tested, and the same output as picture 1 (Notificationtime) with these four:
public float notificationTime;
public float NotificationTime;
public float _Notificationtime;
public float notificationtime;
Insert this:
if (name.IsPrefix("m_"))
result = name.Remove(0, 1);
else result = name;
var builder = new StringBuilder();
for(int i = 0; i < result.Length; i++)
{
var current = result[i];
if (current == '_' && i + 1 < result.Length)
{
var next = result[i + 1];
if (char.IsLower(next))
next = char.ToUpper(next);
builder.Append(next);
i++;
}
else
builder.Append(current);
}
result = builder.ToString();
Code should look like this http://i.imgur.com/QALrLFK.png
This should fix it. I'll push to master in a bit.
Perfect! That fixed ! Thanks!
Hello! It seems this method is conflicting with $nicename.
commenting those three lines, fixes the problem. Its related to regional settings in any way? (latin american system)