public void Set(double[] Values) { Sizes.Clear(); foreach (var i in Values) { Sizes.Add(i); } }
/// <summary> /// 値をすべて特定の型に変換する /// </summary> /// <typeparam name="T">型</typeparam> public override void ConvertAll <T>() { var tempSize = GetArgSize <T>(); var tempNumber = Values.Count / tempSize; Values = Values.GetRange(0, tempNumber * tempSize); Offsets.Clear(); Numbers.Clear(); Sizes.Clear(); Offsets.Add(0); Numbers.Add(tempNumber); Sizes.Add(Values.Count); }
public void SetSizes(IEnumerable <SizeType> sizeTypes) { if (sizeTypes == null || !sizeTypes.Any()) { return; } Sizes.Clear(); foreach (var sizeType in sizeTypes) { Sizes.Add(sizeType); } }
public void AddSize(IQueryable <sitesize> sizes) { // Reset Sizes Sizes.Clear(); // Add each size foreach (var size in sizes) { _size s = new _size(); s.id = size.ID; s.description = size.description; Sizes.Add(s); } }
public void Reset() { Initialized = false; eventId = 0; lastUpdateTime = DateTime.UtcNow; Sites.Clear(); Coords.Clear(); Types.Clear(); Styles.Clear(); Sizes.Clear(); Services.Clear(); Updates.Clear(); }