C# Class HelpRequest.Controllers.Helpers.StringExtension

Show file Open project: ucdavis/HelpRequest

Public Methods

Method Description
IndexOfAll ( this source, string searchTerm ) : IEnumerable

Returns the index of all occurrences of a specific string

Code taken from: http://www.dijksterhuis.org/manipulating-strings-in-csharp-finding-all-occurrences-of-a-string-within-another-string/

Method Details

IndexOfAll() public static method

Returns the index of all occurrences of a specific string
Code taken from: http://www.dijksterhuis.org/manipulating-strings-in-csharp-finding-all-occurrences-of-a-string-within-another-string/
public static IndexOfAll ( this source, string searchTerm ) : IEnumerable
source this
searchTerm string
return IEnumerable