Nested types are perfectly legal, e.g. the ListViewItem.ListViewSubItem class. If it wasn't legal you'd get an error message from the IDE. if you got an error message then you tell us what it was, right? If you don't get an error message then it's legal. If you simply don't get the results you expect then have simply coded the calculations incorrectly.