private IodineObject Clear(VirtualMachine vm, IodineObject self, IodineObject[] args) { IodineStringBuilder thisObj = self as IodineStringBuilder; thisObj.Buffer.Clear(); return(null); }
private IodineObject Prepend(VirtualMachine vm, IodineObject self, IodineObject[] args) { IodineStringBuilder thisObj = self as IodineStringBuilder; foreach (IodineObject obj in args) { thisObj.Buffer.Insert(0, obj.ToString(vm)); } return(null); }
public override bool Equals(IodineObject obj) { IodineStringBuilder strVal = obj as IodineStringBuilder; if (strVal != null) { return(strVal.ToString() == ToString()); } return(false); }