Table of Contents

Class List

Namespace
GLib
Assembly
GLib-2.0.dll
public sealed class List
Inheritance
List
Inherited Members

Constructors

List()

public List()

List(ListOwnedHandle)

public List(ListOwnedHandle handle)

Parameters

handle ListOwnedHandle

Properties

Handle

public ListOwnedHandle Handle { get; }

Property Value

ListOwnedHandle

Methods

Alloc()

public static List Alloc()

Returns

List

Append(List, IntPtr)

public static List Append(List list, IntPtr data)

Parameters

list List
data IntPtr

Returns

List

Concat(List, List)

public static List Concat(List list1, List list2)

Parameters

list1 List
list2 List

Returns

List

Copy(List)

public static List Copy(List list)

Parameters

list List

Returns

List

CopyDeep(List, CopyFunc)

[Version("2.34")]
public static List CopyDeep(List list, CopyFunc func)

Parameters

list List
func CopyFunc

Returns

List
public static List DeleteLink(List list, List link)

Parameters

list List
link List

Returns

List

Equals(List?)

public bool Equals(List? other)

Parameters

other List

Returns

bool

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Find(List, IntPtr)

public static List Find(List list, IntPtr data)

Parameters

list List
data IntPtr

Returns

List

FindCustom(List, IntPtr, CompareFunc)

public static List FindCustom(List list, IntPtr data, CompareFunc func)

Parameters

list List
data IntPtr
func CompareFunc

Returns

List

First(List)

public static List First(List list)

Parameters

list List

Returns

List

Foreach(List, Func)

public static void Foreach(List list, Func func)

Parameters

list List
func Func

Free(List)

public static void Free(List list)

Parameters

list List

Free1(List)

public static void Free1(List list)

Parameters

list List

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Index(List, IntPtr)

public static int Index(List list, IntPtr data)

Parameters

list List
data IntPtr

Returns

int

Insert(List, IntPtr, int)

public static List Insert(List list, IntPtr data, int position)

Parameters

list List
data IntPtr
position int

Returns

List

InsertBefore(List, List, IntPtr)

public static List InsertBefore(List list, List sibling, IntPtr data)

Parameters

list List
sibling List
data IntPtr

Returns

List
[Version("2.62")]
public static List InsertBeforeLink(List list, List? sibling, List link)

Parameters

list List
sibling List
link List

Returns

List

InsertSorted(List, IntPtr, CompareFunc)

public static List InsertSorted(List list, IntPtr data, CompareFunc func)

Parameters

list List
data IntPtr
func CompareFunc

Returns

List

InsertSortedWithData(List, IntPtr, CompareDataFunc)

[Version("2.10")]
public static List InsertSortedWithData(List list, IntPtr data, CompareDataFunc func)

Parameters

list List
data IntPtr
func CompareDataFunc

Returns

List

Last(List)

public static List Last(List list)

Parameters

list List

Returns

List

Length(List)

public static uint Length(List list)

Parameters

list List

Returns

uint

Nth(List, uint)

public static List Nth(List list, uint n)

Parameters

list List
n uint

Returns

List

NthData(List, uint)

public static IntPtr NthData(List list, uint n)

Parameters

list List
n uint

Returns

IntPtr

NthPrev(List, uint)

public static List NthPrev(List list, uint n)

Parameters

list List
n uint

Returns

List

PopAllocator()

public static void PopAllocator()

Position(List, List)

public static int Position(List list, List llink)

Parameters

list List
llink List

Returns

int

Prepend(List, IntPtr)

public static List Prepend(List list, IntPtr data)

Parameters

list List
data IntPtr

Returns

List

PushAllocator(Allocator)

public static void PushAllocator(Allocator allocator)

Parameters

allocator Allocator

Remove(List, IntPtr)

public static List Remove(List list, IntPtr data)

Parameters

list List
data IntPtr

Returns

List

RemoveAll(List, IntPtr)

public static List RemoveAll(List list, IntPtr data)

Parameters

list List
data IntPtr

Returns

List
public static List RemoveLink(List list, List llink)

Parameters

list List
llink List

Returns

List

Reverse(List)

public static List Reverse(List list)

Parameters

list List

Returns

List

Sort(List, CompareFunc)

public static List Sort(List list, CompareFunc compareFunc)

Parameters

list List
compareFunc CompareFunc

Returns

List

SortWithData(List, CompareDataFunc)

public static List SortWithData(List list, CompareDataFunc compareFunc)

Parameters

list List
compareFunc CompareDataFunc

Returns

List