How can I override a Nullable property?

I need to override it in order to override its attributes.

I can easily override a long property:

[HtmlAttribute(CssClass = "s60")]
public override long MyLongProperty { get; set; }

However, I cannot override a Nullable<long> property:

[HtmlAttribute(CssClass = "s60")]
public override Nullable<long> MyNullableLongProperty { get; set; }

Error: The type or namespace Nullable could not be found

And if I override it using 'long' it will show me the following:

Error: type must be 'long?' to match overridden member

Related posts

Recent Viewed