MonobjcMonobjc Documented Class Library
ToSelector Method (selector)
NamespacesMonobjcSelectorExtensionsToSelector(String)
Convert the selector into its pointer representation.
Declaration Syntax
C#Visual BasicVisual C++
public static IntPtr ToSelector(
	this string selector
)
<ExtensionAttribute> _
Public Shared Function ToSelector ( _
	selector As String _
) As IntPtr
[ExtensionAttribute]
public:
static IntPtr ToSelector(
	String^ selector
)
Parameters
selector (String)
The selector.
Return Value
The pointer representation
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc (Module: Monobjc)