BaseRemoveAt (index);
}
- [MonoTODO]
public void Set (int index, TrustLevel trustLevel)
{
- throw new NotImplementedException ();
+ if (BaseGet (index) != null)
+ BaseRemoveAt (index);
+ BaseAdd (index, trustLevel);
}
protected override ConfigurationElement CreateNewElement ()
{
- return new TrustLevel ("", "");
+ return new TrustLevel ();
}
protected override object GetElementKey (ConfigurationElement element)
return ((TrustLevel)element).Name;
}
- [MonoTODO]
protected override bool IsElementName (string elementname)
{
- throw new NotImplementedException ();
+ return elementname == "trustlevel";
}
- protected override ConfigurationElementCollectionType CollectionType {
+ public override ConfigurationElementCollectionType CollectionType {
get { return ConfigurationElementCollectionType.BasicMap; }
}
- [MonoTODO]
protected override string ElementName {
- get { throw new NotImplementedException (); }
+ get { return "trustLevel"; }
}
public new TrustLevel this [string name] {
public TrustLevel this [int index] {
get { return (TrustLevel) BaseGet (index); }
- set { if (BaseGet (index) != null) BaseRemoveAt (index); BaseAdd (index, value); }
+ set { Set (index, value); }
}
- [MonoTODO]
protected override bool ThrowOnDuplicate {
- get { throw new NotImplementedException (); }
+ get { return false; }
}
protected override ConfigurationPropertyCollection Properties {