AjErl.Language.Tuple.ElementAt C# (CSharp) 메소드

ElementAt() 공개 메소드

public ElementAt ( int position ) : object
position int
리턴 object
        public object ElementAt(int position)
        {
            return this.elements[position];
        }

Usage Example

예제 #1
0
파일: TupleTests.cs 프로젝트: ajlopez/AjErl
        public void CreateSimpleTuple()
        {
            Tuple tuple = new Tuple(new object[] { 1, 2, 3 });

            Assert.AreEqual(3, tuple.Arity);
            Assert.AreEqual(1, tuple.ElementAt(0));
            Assert.AreEqual(2, tuple.ElementAt(1));
            Assert.AreEqual(3, tuple.ElementAt(2));
        }
All Usage Examples Of AjErl.Language.Tuple::ElementAt