/// <summary> /// Defines string constant. /// </summary> /// <param name="value">value of constant to define.</param> /// <returns></returns> public AbcConst <string> DefineString(string value) { if (value == null) { throw new ArgumentNullException("value"); } return(StringPool.Define(value)); }
/// <summary> /// Defines namespace with given name. /// </summary> /// <param name="kind"></param> /// <param name="name"></param> /// <returns></returns> public AbcNamespace DefineNamespace(AbcConstKind kind, string name) { var c = StringPool.Define(name); return(DefineNamespace(kind, c)); }