/// <summary> /// Gets <see cref="CoordinateProper" /> array. /// </summary> /// <param name="clone">If set to <see cref="Tristate.UseDefault" /> or <see cref="Tristate.True" />, clones the collection.</param> /// <param name="collectionSize">Size of the collection.</param> /// <returns>CoordinateProper[].</returns> public CoordinateProper[] GetCoordinateProperArray( Tristate clone = Tristate.True, CollectionSize collectionSize = CollectionSize.Full) { return(collectionSize is CollectionSize.Full ? clone is Tristate.True or Tristate.UseDefault ? this._coordinateProperArray.Clone <CoordinateProper[]>() : this._coordinateProperArray : clone is Tristate.True or Tristate.UseDefault ? this._coordinateProperArrayHalf.Clone <CoordinateProper[]>() : this._coordinateProperArrayHalf); }
public override void Print(int indentLevel) { PrintIndented(String.Format("Field {0}: ", Name), indentLevel); Type.Print(indentLevel + 1); CollectionSize?.Print((indentLevel + 1)); Fixer?.Print(indentLevel + 1); }
/// <summary> /// Gets <see cref="Tester.Models.ValueTypes.Coordinate" /> array. /// </summary> /// <param name="clone">If set to <see cref="Tristate.UseDefault" /> or <see cref="Tristate.True" />, clones the collection.</param> /// <param name="collectionSize">Size of the collection.</param> /// <returns>Tester.Models.ValueTypes.Coordinate[].</returns> public Tester.Models.ValueTypes.Coordinate[] GetCoordinateArray(Tristate clone = Tristate.True, CollectionSize collectionSize = CollectionSize.Full) { return(collectionSize is CollectionSize.Full ? clone is Tristate.True or Tristate.UseDefault ? this._coordinateArray.Clone <Tester.Models.ValueTypes.Coordinate[]>() : this._coordinateArray : clone is Tristate.True or Tristate.UseDefault ? this._coordinateArrayHalf.Clone <Tester.Models.ValueTypes.Coordinate[]>() : this._coordinateArrayHalf); }
/// <summary> /// Gets <see cref="PersonRecord" /> array. /// </summary> /// <param name="clone">If set to <see cref="Tristate.UseDefault" /> or <see cref="Tristate.True" />, clones the collection.</param> /// <param name="collectionSize">Size of the collection.</param> /// <returns>PersonProper[].</returns> public PersonRecord[] GetPersonRecordArray(Tristate clone = Tristate.True, CollectionSize collectionSize = CollectionSize.Full) { return(collectionSize is CollectionSize.Full ? clone is Tristate.True or Tristate.UseDefault ? this._personRecordArray.Clone <PersonRecord[]>() : this._personRecordArray : clone is Tristate.True or Tristate.UseDefault ? this._personRecordArrayHalf.Clone <PersonRecord[]>() : this._personRecordArrayHalf); }
/// <summary> /// Gets <see cref="Person" /> array. /// </summary> /// <param name="clone">If set to <see cref="Tristate.UseDefault" /> or <see cref="Tristate.True" />, clones the collection.</param> /// <param name="collectionSize">Size of the collection.</param> /// <returns>Tester.Models.ValueTypes.Person[].</returns> public Tester.Models.ValueTypes.Person[] GetPersonValArray(Tristate clone = Tristate.True, CollectionSize collectionSize = CollectionSize.Full) { if (collectionSize is CollectionSize.Full) { return(clone is Tristate.True or Tristate.UseDefault ? this._personValArray.Clone <Tester.Models.ValueTypes.Person[]>() : this._personValArray); } else { return(clone is Tristate.True or Tristate.UseDefault ? this._personValArrayHalf.Clone <Tester.Models.ValueTypes.Person[]>() : this._personValArrayHalf); } }
/// <summary> /// Gets <see cref="PersonProper" /> dictionary. /// </summary> /// <param name="clone">If set to <see cref="Tristate.UseDefault" /> or <see cref="Tristate.True" />, clones the collection.</param> /// <param name="collectionSize">Size of the collection.</param> /// <returns>Dictionary<System.String, PersonProper>.</returns> public Dictionary <string, PersonProper> GetPersonProperDictionary(Tristate clone = Tristate.True, CollectionSize collectionSize = CollectionSize.Full) { return(collectionSize is CollectionSize.Full ? clone is Tristate.True or Tristate.UseDefault ? this._personProperDictionary.Clone <Dictionary <string, PersonProper> >() : this._personProperDictionary : clone is Tristate.True or Tristate.UseDefault ? this._personProperDictionaryHalf.Clone <Dictionary <string, PersonProper> >() : this._personProperDictionaryHalf); }