Mono.CSharp.Namespace.CompletionGetTypesStartingWith C# (CSharp) Method

CompletionGetTypesStartingWith() public method

public CompletionGetTypesStartingWith ( string prefix ) : IEnumerable
prefix string
return IEnumerable
		public IEnumerable<string> CompletionGetTypesStartingWith (string prefix)
		{
			if (types == null)
				return Enumerable.Empty<string> ();

			var res = from item in types
					  where item.Key.StartsWith (prefix) && item.Value.Any (l => (l.Modifiers & Modifiers.PUBLIC) != 0)
					  select item.Key;

			if (namespaces != null)
				res = res.Concat (from item in namespaces where item.Key.StartsWith (prefix) select item.Key);

			return res;
		}