1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +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 public bool IsEmpty
{ {
[Inline]
get get
{ {
return mLength == 0; return mLength == 0;

View file

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

View file

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