<pre><code>public class Item
{
        private int  _rowID;
        private Guid _itemGUID;

        public Item() { }

        public int Rid
        {
            get
            {
                return _rowID;
            }
            set {  }

        }

        public Guid IetmGuid
        {
            get
            {
                return _itemGuid;
            }
            set
            {
                _itemGuid= value;
            }

        }

}    
</code></pre>

<p>The above is my custom object.</p>

<p>I have a list:</p>

<pre><code>List&lt;V&gt; myList = someMethod;
</code></pre>

<p>where V is of type Item, my object.</p>

<p>I want to iterate and get the properties as such</p>

<pre><code>foreach(V element in mylist)
{
   Guid test = element.IetmGuid; 
}
</code></pre>

<p>When I debug and look at the 'element' object I can see all the properties in the 'Quickwatch' but I cannot do element.IetmGuid.</p>

```
```
foreach( object element in myList ) {
    Item itm = element as Item;
    if ( null == itm ) { continue; }
    Guid test = itm.ItemGuid;
}
```
```