I have a class that inherits from X509Certificate2. I want the NotAfter property to be in UTC rather than local time. I'm pretty new to C# and was wondering if what I have below is the best way of doing it?
internal class Certificate : X509Certificate2
{
public new DateTime NotAfter
{
get { return base.NotAfter.ToUniversalTime(); }
}
EDIT When I changed it to this:
public override DateTime NotAfter
{
get { return base.NotAfter.ToUniversalTime(); }
}
Resharper complained that "There is not suitable property for override"