History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-30006
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Dmitry Lomov
Reporter: Vladimir Reshetnikov
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
ReSharper

error CS0120: An object reference is required for the nonstatic field, method, or property 'object.GetType()'

Created: 17 Oct 06 13:52   Updated: 20 Jun 07 10:57
Component/s: PSI - Resolve
Fix Version/s: 4.0
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 263


 Description  « Hide
class MyAttribute : Attribute
{
    // error CS0120: An object reference is required for the nonstatic field, method, or property 'object.GetType()'
    // error CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression
    [My(new int[] { GetType().GetHashCode() })]
    public MyAttribute(int[] x) { }
}


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.