0

I have a simple property:

Private _t As DateTime = DateTime.Now
    Public Property Test As DateTime
        Get
            Return _t
        End Get
        Set(value As DateTime)
            _t = value
        End Set
    End Property

Now I have two independent threads: Thread one permanently invokes the getter and thread two permanently invokes the setter with datetime.now

Do I need to sync the property? Can the property be in an undefined or null/nothing state or will it alway return a date?

Richard
  • 55
  • 1
  • 8

0 Answers0