public InternalEntry(int body, int itemID, string name) { Body = body; ItemID = itemID; Name = name; DisplayName = name.ToLower(); for (var i = 0; i < m_GroupNames.Length; ++i) { if (DisplayName.StartsWithOrdinal(m_GroupNames[i])) { DisplayName = DisplayName[m_GroupNames[i].Length..];
public InternalEntry(int body, int itemID, string name) { Body = body; ItemID = itemID; Name = name; DisplayName = name.ToLower(); for (var i = 0; i < m_GroupNames.Length; ++i) { if (DisplayName.StartsWithOrdinal(m_GroupNames[i])) { DisplayName = DisplayName.Substring(m_GroupNames[i].Length); break; } } DisplayName = DisplayName.Replace('_', ' '); }