Better handling of list.remove()
This commit is contained in:
@@ -114,5 +114,10 @@ namespace Upsilon.BaseTypes.UserData
|
||||
var cSharpObj = obj.ToCSharpObject();
|
||||
return Dictionary.Contains(cSharpObj);
|
||||
}
|
||||
|
||||
public void Delete(ScriptType key)
|
||||
{
|
||||
Dictionary.Remove(key.ToCSharpObject());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -144,6 +144,11 @@ namespace Upsilon.BaseTypes.UserData
|
||||
return List.Contains(cSharpObj);
|
||||
}
|
||||
|
||||
public void Delete(ScriptType key)
|
||||
{
|
||||
List.Remove(key.ToCSharpObject());
|
||||
}
|
||||
|
||||
public ScriptNumberLong Length()
|
||||
{
|
||||
return new ScriptNumberLong(List.Count);
|
||||
|
||||
Reference in New Issue
Block a user