mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-07 20:07:56 +08:00
20 lines
343 B
C#
20 lines
343 B
C#
using System;
|
|
|
|
namespace Wox.Infrastructure
|
|
{
|
|
static class SyntaxSuger<T>
|
|
{
|
|
public static T RequireNonNull(T obj)
|
|
{
|
|
if (obj == null)
|
|
{
|
|
throw new NullReferenceException();
|
|
}
|
|
else
|
|
{
|
|
return obj;
|
|
}
|
|
}
|
|
}
|
|
}
|