Visual Basic

継承メモ

When you create a class without explicitly inheriting from another class, your class implicitly inherits from System.Object.自分で作ったクラスに何も継承させなかったときは、System.Objectを継承する Public Class Class2 Inherits Class1 ' class…

Delegate And AddressOf

Dim d1, d2, d3 As Delegate1 d1 = AddressOf Sub1 d2 = AddressOf Sub2 ' create d3 which is a multicast of d1 and d2 d3 = CType(System.Delegate.Combine(d1, d2), Delegate1) d3("Firing two method implementations at once")A third delegate, d3, i…

IIF

IIF (Immediate IF)CheckIt = IIf(TestMe > 1000, "Large", "Small")