Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // helper function, used to identify imported objects by naming convention
- public static bool HasWord (string hayStack, string needle)
- {
- string[] words = hayStack.Split (' ');
- foreach (string word in words) {
- if (word.ToLower () == needle.ToLower ()) {
- return true;
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment