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
Methods
Alloc()
public static List Alloc()
Returns
Append(List, IntPtr)
public static List Append(List list, IntPtr data)
Parameters
Returns
Concat(List, List)
public static List Concat(List list1, List list2)
Parameters
Returns
Copy(List)
public static List Copy(List list)
Parameters
list
List
Returns
CopyDeep(List, CopyFunc)
[Version("2.34")]
public static List CopyDeep(List list, CopyFunc func)
Parameters
Returns
DeleteLink(List, List)
public static List DeleteLink(List list, List link)
Parameters
Returns
Equals(List?)
public bool Equals(List? other)
Parameters
other
List
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Find(List, IntPtr)
public static List Find(List list, IntPtr data)
Parameters
Returns
FindCustom(List, IntPtr, CompareFunc)
public static List FindCustom(List list, IntPtr data, CompareFunc func)
Parameters
list
Listdata
IntPtrfunc
CompareFunc
Returns
First(List)
public static List First(List list)
Parameters
list
List
Returns
Foreach(List, Func)
public static void Foreach(List list, Func func)
Parameters
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
Returns
Insert(List, IntPtr, int)
public static List Insert(List list, IntPtr data, int position)
Parameters
Returns
InsertBefore(List, List, IntPtr)
public static List InsertBefore(List list, List sibling, IntPtr data)
Parameters
Returns
InsertBeforeLink(List, List?, List)
[Version("2.62")]
public static List InsertBeforeLink(List list, List? sibling, List link)
Parameters
Returns
InsertSorted(List, IntPtr, CompareFunc)
public static List InsertSorted(List list, IntPtr data, CompareFunc func)
Parameters
list
Listdata
IntPtrfunc
CompareFunc
Returns
InsertSortedWithData(List, IntPtr, CompareDataFunc)
[Version("2.10")]
public static List InsertSortedWithData(List list, IntPtr data, CompareDataFunc func)
Parameters
list
Listdata
IntPtrfunc
CompareDataFunc
Returns
Last(List)
public static List Last(List list)
Parameters
list
List
Returns
Length(List)
public static uint Length(List list)
Parameters
list
List
Returns
Nth(List, uint)
public static List Nth(List list, uint n)
Parameters
Returns
NthData(List, uint)
public static IntPtr NthData(List list, uint n)
Parameters
Returns
NthPrev(List, uint)
public static List NthPrev(List list, uint n)
Parameters
Returns
PopAllocator()
public static void PopAllocator()
Position(List, List)
public static int Position(List list, List llink)
Parameters
Returns
Prepend(List, IntPtr)
public static List Prepend(List list, IntPtr data)
Parameters
Returns
PushAllocator(Allocator)
public static void PushAllocator(Allocator allocator)
Parameters
allocator
Allocator
Remove(List, IntPtr)
public static List Remove(List list, IntPtr data)
Parameters
Returns
RemoveAll(List, IntPtr)
public static List RemoveAll(List list, IntPtr data)
Parameters
Returns
RemoveLink(List, List)
public static List RemoveLink(List list, List llink)
Parameters
Returns
Reverse(List)
public static List Reverse(List list)
Parameters
list
List
Returns
Sort(List, CompareFunc)
public static List Sort(List list, CompareFunc compareFunc)
Parameters
list
ListcompareFunc
CompareFunc
Returns
SortWithData(List, CompareDataFunc)
public static List SortWithData(List list, CompareDataFunc compareFunc)
Parameters
list
ListcompareFunc
CompareDataFunc