NSObject.Alloc(Class) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Allocates an uninitialized instance of the specified class.
public static Foundation.NSObject Alloc(ObjCRuntime.Class kls);
static member Alloc : ObjCRuntime.Class -> Foundation.NSObject
Parameters
- kls
- Class
The class to allocate.
Returns
A new uninitialized NSObject instance.
Remarks
This method should typically be followed by a call to an init method to properly initialize the object.