1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

More trivial inlines

This commit is contained in:
Brian Fiete 2021-07-21 07:43:11 -07:00
parent d046cb10a4
commit e561a26695
3 changed files with 7 additions and 1 deletions

View file

@ -35,7 +35,8 @@ namespace System
}
public bool IsEmpty
{
{
[Inline]
get
{
return mLength == 0;

View file

@ -148,6 +148,7 @@ namespace System.Collections
public int Count
{
[Inline]
get
{
return mSize;

View file

@ -20,22 +20,26 @@ namespace System
public T Value
{
[Inline]
get
{
return Unwrap();
}
}
[Inline]
public static implicit operator Result<T>(T value)
{
return .Ok(value);
}
[Inline]
public static implicit operator T(Result<T> result)
{
return result.Unwrap();
}
[Inline]
public void IgnoreError()
{
}