/// <summary> /// Adds the range. /// </summary> /// <param name="values">The values.</param> public void AddRange(AssertCollection values) { IEnumerator enums = values.GetEnumerator(); while (enums.MoveNext()) { Add((Assert)enums.Current); } }
/// <summary> /// Gets the size of. /// </summary> /// <param name="asserts">Asserts.</param> /// <returns>size of the list</returns> public static int GetSizeOf(AssertCollection asserts) { int total = 0; IEnumerator assertsEnu = asserts.GetEnumerator(); while (assertsEnu.MoveNext()) { Assert assert = (Assert)assertsEnu.Current; total += 2 + assert.Name.Length + 1; } return(total); }
/// <summary> /// Creates a new <see cref="ExportAssetsTag"/> instance. /// </summary> /// <param name="exportedCharacters">Exported characters.</param> public ExportAssetsTag(Assert[] exportedCharacters) { this.exportedCharacters = new AssertCollection(); this.exportedCharacters.AddRange(exportedCharacters); this._tagCode = (int)TagCodeEnum.ExportAssets; }
/// <summary> /// Creates a new <see cref="ExportAssetsTag"/> instance. /// </summary> public ExportAssetsTag() { this._tagCode = (int)TagCodeEnum.ExportAssets; exportedCharacters = new AssertCollection(); }
/// <summary> /// Adds the range. /// </summary> /// <param name="values">The values.</param> public void AddRange(AssertCollection values) { IEnumerator enums = values.GetEnumerator(); while (enums.MoveNext()) Add((Assert)enums.Current); }
/// <summary> /// Gets the size of. /// </summary> /// <param name="asserts">Asserts.</param> /// <returns>size of the list</returns> public static int GetSizeOf(AssertCollection asserts) { int total = 0; IEnumerator assertsEnu = asserts.GetEnumerator(); while (assertsEnu.MoveNext()) { Assert assert = (Assert)assertsEnu.Current; total += 2 + assert.Name.Length + 1; } return total; }
/// <summary> /// Creates a new <see cref="ImportAssetsTag"/> instance. /// </summary> /// <param name="url">URL.</param> /// <param name="exportedCharacters">Exported characters.</param> public ImportAssetsTag(string url, Assert[] exportedCharacters) { this.url = url; this.exportedCharacters = new AssertCollection(); this.exportedCharacters.AddRange(exportedCharacters); this._tagCode = (int)TagCodeEnum.ExportAssets; }
/// <summary> /// Creates a new <see cref="ExportAssetsTag"/> instance. /// </summary> /// <param name="exportedCharacters">Exported characters.</param> public SymbolClassTag(Assert[] exportedCharacters) { this.exportedCharacters = new AssertCollection(); this.exportedCharacters.AddRange(exportedCharacters); this._tagCode = (int)TagCodeEnum.SymbolClass; }
/// <summary> /// Creates a new <see cref="ExportAssetsTag"/> instance. /// </summary> public SymbolClassTag() { this._tagCode = (int)TagCodeEnum.SymbolClass; exportedCharacters = new AssertCollection(); }