mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +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
|
@ -227,6 +227,15 @@ namespace System.Collections.Generic
|
|||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
public ref T Front
|
||||
{
|
||||
get
|
||||
{
|
||||
Debug.Assert(mSize != 0);
|
||||
return ref mItems[0];
|
||||
}
|
||||
}
|
||||
|
||||
public ref T Back
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue