Fan.Sys.StrBuf.insert C# (CSharp) Méthode

insert() public méthode

public insert ( long index, object x ) : StrBuf
index long
x object
Résultat StrBuf
        public StrBuf insert(long index, object x)
        {
            string s = (x == null) ? "null" : toStr(x);
              int i = (int)index;
              if (i < 0) i = sb.Length+i;
              if (i > sb.Length) throw IndexErr.make(index).val;
              sb.Insert(i, s);
              return this;
        }