MyMediaLite.Data.StaticRatings.RemoveAt C# (CSharp) Метод

RemoveAt() публичный Метод

public RemoveAt ( int index ) : void
index int
Результат void
        public override void RemoveAt(int index)
        {
            throw new NotSupportedException();
        }

Usage Example

Пример #1
0
        public void TestRemoveAt()
        {
            var ratings = new StaticRatings(8);
            ratings.Add(1, 4, 0.3f);
            ratings.Add(1, 8, 0.2f);
            ratings.Add(2, 4, 0.2f);
            ratings.Add(2, 2, 0.6f);
            ratings.Add(2, 5, 0.4f);
            ratings.Add(3, 7, 0.2f);
            ratings.Add(3, 3, 0.3f);
            ratings.Add(6, 3, 0.3f);

            Assert.AreEqual(8, ratings.Count);
            ratings.RemoveAt(ratings.GetIndex(2, 5));
        }