OpenSim.Region.ScriptEngine.Shared.LSL_Types.list.GetKeyItem C# (CSharp) Method

GetKeyItem() public method

public GetKeyItem ( int itemIndex ) : LSL_Types.key
itemIndex int
return LSL_Types.key
            public LSL_Types.key GetKeyItem(int itemIndex)
            {
              return (LSL_Types.key)m_data[itemIndex];
            }

Usage Example

        public void TestGetKeyItemForKeyItem()
        {
            TestHelpers.InMethod();

            LSL_Types.key testValue
                = new LSL_Types.key("00000000-0000-2222-3333-100000001012");
            LSL_Types.list testList = new LSL_Types.list(testValue);

            Assert.AreEqual(testValue, testList.GetKeyItem(0));
        }