/// <summary> /// Only replaces the <b>first</b> occurrence of the placeholder. /// </summary> /// <param name="eventName">The event whose name is going to be used.</param> /// <returns> /// The method name customised for the name of the supplied event. /// </returns> private string GetMethodNameCustomisedForEvent(string eventName) { string methodName = MethodName; if (MethodName.IndexOf(EventNamePlaceHolder) >= 0) { methodName = MethodName.Replace(EventNamePlaceHolder, eventName); } return(methodName); }