You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ISnippetExtractor.cs 708 B

123456789101112131415161718192021222324
  1. namespace Projbook.Extension.Spi
  2. {
  3. /// <summary>
  4. /// Defines interface for snippet extractor.
  5. /// </summary>
  6. public interface ISnippetExtractor
  7. {
  8. /// <summary>
  9. /// Defines the target type.
  10. /// </summary>
  11. TargetType TargetType { get; }
  12. /// <summary>
  13. /// Extracts a snippet.
  14. /// </summary>
  15. /// <param name="fullFilename">The full filename (with path) to load and to extract the snippet from.</param>
  16. /// <param name="pattern">The extraction pattern.</param>
  17. /// <returns>
  18. /// The extracted snippet as string.
  19. /// </returns>
  20. string Extract(string fullFilename, string pattern);
  21. }
  22. }