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

set() public méthode

public set ( long index, long ch ) : StrBuf
index long
ch long
Résultat StrBuf
        public StrBuf set(long index, long ch)
        {
            try
              {
            int i = (int)index;
            if (i < 0) i = sb.Length+i;
            sb[i] = (char)ch;
            return this;
              }
              catch (System.ArgumentOutOfRangeException e)
              {
            throw IndexErr.make(e).val;
              }
        }