delete marg-sharp(an implementation written in C#)