2.vb

来自「Code for VB.NET教程源码 很好的源码」· VB 代码 · 共 37 行

VB
37
字号

Imports System.Collections
Imports System

Public Structure Person
    
    Dim Name As String
    Dim Age As Integer
    
End Structure


Public Module Main

	public Sub Main()

		dim p1 as Person
		dim p2 as Person

		p1.Name = "Richard"
		p1.Age = 29

		p2.Name = "Richard"
		p2.Age = 29

		if p1.Equals(p2) then
			Console.WriteLine( "They are the same person" )

		end if

		
		
	End Sub

End Module

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?