[Solved] Embedded statement error [duplicate]
Please take a look at the piece of code, resulting in an error: if(obj is sortDateTime) sortDateTime sDT = (sortDateTime) obj; //here ERROR return m_stDate.CompareTo(sDT.m_stDate); What you are saying is this: if the object is of type ‘sortDateTime’ Allocate memory for variable ‘sDT’ Cast ‘obj’ to type ‘sortDateTime’ Store the result in variable ‘sDT’ And … Read more