Error! Why?
Posted: November 17th, 2013, 3:57 pm
Given
Why can't I get the Now property?
What does the error report mean, exactly?
- Code: Select all
⎕cse 'GetProperties' 'ts'
Date Day DayOfWeek DayOfYear Hour Kind Millisecond Minute Month
Now UtcNow Second Ticks TimeOfDay Today Year
⎕cse 'GetValue' 'ts.Now'
CSE ERROR: (1,1): error CS0176: Member 'System.DateTime.Now' cannot be accessed with an instance reference; qualify it with a type name instead
⎕cse 'GetValue' 'ts.Now'
^
⎕cse 'GetLastError'
(1,1): error CS0176: Member 'System.DateTime.Now' cannot be acces
sed with an instance reference; qualify it with a type name
instead
Why can't I get the Now property?
What does the error report mean, exactly?