dba123
asked on
Enum question
I don't understand what these 2 lines are doing:
private SortColumns? _SortColumn;
private SortDirection? _SortDirection;
if I have this in the page:
private enum SortColumns
{
Title,
Name
}
private enum SortDirection
{
Ascending,
Descending
}
private SortColumns? _SortColumn;
private SortDirection? _SortDirection;
if I have this in the page:
private enum SortColumns
{
Title,
Name
}
private enum SortDirection
{
Ascending,
Descending
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
_SortColumn = null; //OK
vs
private SortColumns _SortColumn;
_SortColumn = null; //Compile error