Table of Contents

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

s string

String.

Properties

Length

Get number of characters of string.

public int Length { get; }

Property Value

int

Methods

CopyTo(char[], int)

Copy string to given buffer.

public void CopyTo(char[] buffer, int index)

Parameters

buffer char[]

Buffer.

index int

Index of position to place copied string.

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.