MonobjcMonobjc Documented Class Library
GetTypeEncoding Method (type)
NamespacesMonobjcObjectiveCEncodingGetTypeEncoding(Type)

Return the Objective-C encoding used to build selector signature.

Here are some examples of encoding:
TypeCorresponding encoding
void
v
int or Int32
i
NSString
@
int[]
^i
NSRect
{NSRect={NSPoint=ff}{NSSize=ff}}

For a full list of the encoding, refer to http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_5_section_7.html

Declaration Syntax
C#Visual BasicVisual C++
public static string GetTypeEncoding(
	Type type
)
Public Shared Function GetTypeEncoding ( _
	type As Type _
) As String
public:
static String^ GetTypeEncoding(
	Type^ type
)
Parameters
type (Type)
The type to encode.
Return Value
The encoding representation
Exceptions
ExceptionCondition
ArgumentNullExceptionIf the type is null.
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)