Advertisement
Krissy

Dictionary

Jan 27th, 2013
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6.  
  7. class Dictionary
  8. {
  9.     static void Main()
  10.     {
  11.         string[] dictionary = { ".NET - platform for applications from Microsoft",
  12.                                 "CLR - managed execution environment for .NET",
  13.                                 "namespace - hierarchical - organization of classes" };
  14.         string word = "namespace";//Console.ReadLine();
  15.         foreach (string line in dictionary)
  16.         {
  17.             if (line.IndexOf(word)==0)
  18.             {
  19.                 Console.WriteLine(line);
  20.             }
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement