Snippet: CType operator overloading

property value
IDE Visual Studio
Language VB
Title CType operator overloading
Shortcut oo
Description CType operator overloading
Snippet Types Expansion

Placeholders

Identifier Tooltip Default Value Editable Function Type Name
operand Object to convert value yes
thisName Containing type name ThisName no ClassName()
type Type to convert to Object yes

Code

Public Shared Widening Operator CType(ByVal value As ThisName) As Object
	
End Operator

Public Shared Narrowing Operator CType(ByVal value As Object) As ThisName
End Operator