Browse Source

Allow lists of unknown items to be retrieved from the property service.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1702 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Scott Ferrett 19 years ago
parent
commit
4d419fc395
  1. 19
      src/Main/Core/Project/Src/Services/PropertyService/Properties.cs

19
src/Main/Core/Project/Src/Services/PropertyService/Properties.cs

@ -49,6 +49,17 @@ namespace ICSharpCode.Core @@ -49,6 +49,17 @@ namespace ICSharpCode.Core
Set(property, value);
}
}
public string[] Elements
{
get
{
List<string> ret = new List<string>();
foreach (KeyValuePair<string, object> property in properties)
ret.Add(property.Key);
return ret.ToArray();
}
}
public object Get(string property)
{
@ -74,6 +85,14 @@ namespace ICSharpCode.Core @@ -74,6 +85,14 @@ namespace ICSharpCode.Core
{
return properties.ContainsKey(property);
}
public int Count
{
get
{
return properties.Count;
}
}
public bool Remove(string property)
{

Loading…
Cancel
Save