system\diagnostics\eventing\eventsource.cs (4)
3447if (string.Compare(eventName, 0, taskName, 0, taskName.Length) == 0 &&
3448string.Compare(eventName, taskName.Length, s_ActivityStartSuffix, 0, Math.Max(eventName.Length - taskName.Length, s_ActivityStartSuffix.Length)) == 0)
3468string.Compare(startEventMetadata.Name, 0, taskName, 0, taskName.Length) == 0 &&
3469string.Compare(startEventMetadata.Name, taskName.Length, s_ActivityStartSuffix, 0, Math.Max(startEventMetadata.Name.Length - taskName.Length, s_ActivityStartSuffix.Length)) == 0)