C# typeof in VB

Because I always forget

C#
if (formatType == typeof(ICustomFormatter)) return this;

VB
If formatType = GetType(ICustomFormatter) Then Return Me

Comments

Popular posts from this blog

My Response to FitToFatToFit Episode 4 with Alex and Geoff

Fighting Frustrations

Rocket Science