mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-13 13:54:11 +02:00
Added List.Front
Added a Front to complement Back.
This commit is contained in:
parent
d9a820f5a1
commit
2a88e95e01
1 changed files with 9 additions and 0 deletions
|
@ -228,6 +228,15 @@ namespace System.Collections.Generic
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ref T Front
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
Debug.Assert(mSize != 0);
|
||||||
|
return ref mItems[0];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public ref T Back
|
public ref T Back
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue