Class NonNullablePlatformStringOwnedHandle
Represents an owned non nullable platform string. If an instance of this class is collected by the garbage collecctor the associated memory is freed.
public class NonNullablePlatformStringOwnedHandle : NonNullablePlatformStringHandle, IDisposable
- Inheritance
-
NonNullablePlatformStringOwnedHandle
- Implements
- Inherited Members
Methods
Create(string)
Creates a non nullable platform string handle for the given string.
public static NonNullablePlatformStringOwnedHandle Create(string s)
Parameters
s
stringThe string which should be used to create the handle.
Returns
- NonNullablePlatformStringOwnedHandle
A non nullable utf8 string handle
Exceptions
- GException
Thrown if the string could not be converted into a platform string.
ReleaseHandle()
When overridden in a derived class, executes the code required to free the handle.
protected override bool ReleaseHandle()