/// <summary> /// Write out given string as an NSTRING, depending on the type /// of the characters inside the string. The string should /// contain only ASCII characters. /// </summary> /// <param name="s">String to write out</param> /// <returns>this</returns> public Argument WriteNString(string s) { if (s == null) { items.Add(new NString(null)); } else { items.Add(new NString(ASCIIUtility.GetBytes(s))); } return(this); }
/// <summary> /// Write out given string as an ASTRING, depending on the type /// of the characters inside the string. The string should /// contain only ASCII characters. /// </summary> /// <param name="s">String to write out</param> /// <returns>this</returns> public Argument WriteString(string s) { items.Add(new AString(ASCIIUtility.GetBytes(s))); return(this); }