Skip to content

Instantly share code, notes, and snippets.

@epperson
Created September 9, 2019 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epperson/806cde8ba01ec44e06efcd9cb2c186d0 to your computer and use it in GitHub Desktop.
Save epperson/806cde8ba01ec44e06efcd9cb2c186d0 to your computer and use it in GitHub Desktop.
Extension method for adding content to an instance of a DocumentSearchEventArgs (Kentico)
using CMS.DocumentEngine;
namespace Example.Linq
{
public static class DocumentSearchEventArgsExtensions
{
public static void AddContent(this DocumentSearchEventArgs searchEventArgs, string content)
{
searchEventArgs.Content += $" {content}";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment