Class CFString
- Namespace
- CarinaStudio.MacOS.CoreFoundation
- Assembly
- CarinaStudio.AppBase.MacOS.dll
String.
public class CFString : CFObject, IShareableDisposable<CFObject>, IDisposable
- Inheritance
-
CFString
- Implements
- Inherited Members
- Extension Methods
Constructors
CFString(string)
Initialize new CFString instance.
public CFString(string s)
Parameters
sstringString.
Properties
Length
Get number of characters of string.
public int Length { get; }
Property Value
Methods
CopyTo(char[], int)
Copy string to given buffer.
public void CopyTo(char[] buffer, int index)
Parameters
Retain()
Retain the object.
public override CFObject Retain()
Returns
- CFObject
New instance of retained object.
ToString()
Returns a string that represents the current object.
public override string? ToString()
Returns
- string
A string that represents the current object.