コード例 #1
0
 internal Enumerator(TList list, ListElementProperty <TList, TElement> property)
 {
     m_List     = list;
     m_Property = property;
     m_Previous = property.m_Index;
     m_Position = -1;
 }
コード例 #2
0
        /// <inheritdoc/>
        public bool TryGetProperty(ref TList container, int index, out IProperty <TList> property)
        {
            if ((uint)index >= (uint)container.Count)
            {
                property = null;
                return(false);
            }

            property = new ListElementProperty <TList, TElement>
            {
                m_Index      = index,
                m_IsReadOnly = false
            };

            return(true);
        }
コード例 #3
0
 public PropertyCollection(TList list, ListElementProperty <TList, TElement> property)
 {
     m_List     = list;
     m_Property = property;
 }
 public Enumerable(TList list, ListElementProperty property)
 {
     m_List     = list;
     m_Property = property;
 }