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:
parent
d046cb10a4
commit
e561a26695
3 changed files with 7 additions and 1 deletions
|
@ -36,6 +36,7 @@ namespace System
|
|||
|
||||
public bool IsEmpty
|
||||
{
|
||||
[Inline]
|
||||
get
|
||||
{
|
||||
return mLength == 0;
|
||||
|
|
|
@ -148,6 +148,7 @@ namespace System.Collections
|
|||
|
||||
public int Count
|
||||
{
|
||||
[Inline]
|
||||
get
|
||||
{
|
||||
return mSize;
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue