All pastes #27221 Raw Edit

Untitled

public text v1 · immutable
#27221 ·published 2005-11-01 01:36 UTC
rendered paste body
Imports System
Imports Microsoft.VisualBasic

Module ExpressionLiteralsNothing
Public Structure MyStruct
Public Name As String
Public Number As Short
End Structure

        public A As MyStruct

        Sub Main()
                A = Nothing
                If A.Name <> Nothing Then
                        Throw New Exception ("Unexpected behavior. A.Name Should be Nothing ")
                End If
                If A.Number <> 0
                        Throw New Exception ("Unexpected behavior. A.Number Should be 0 ")
                End If
        End Sub
End Module