public static string GetCleanupRemoveSystemClassName(this ComponentData data, string contextName)
        {
            Debug.Assert(data.HasCleanupRemoveComponentData());

            const string CLASS_NAME = "Remove${componentName}From${ContextName}EntitiesSystem";

            return(CLASS_NAME.Replace(contextName).Replace(data, contextName));
        }
        private string GetAddSystemContent(string contextName, ComponentData data)
        {
            var result = string.Empty;

            if (data.HasCleanupDestroyEntityData())
            {
                result = ALLOCATE_AND_ADD_SYSTEM_LOGIC.Replace(SYSTEM_CLASS_NAME, data.GetCleanupDestroySystemClassName(contextName));
            }
            else if (data.HasCleanupRemoveComponentData())
            {
                result = ALLOCATE_AND_ADD_SYSTEM_LOGIC.Replace(SYSTEM_CLASS_NAME, data.GetCleanupRemoveSystemClassName(contextName));
            }

            Debug.Assert(!string.IsNullOrEmpty(result));

            return(result);
        }