rename extension methods
This commit is contained in:
@@ -2,22 +2,22 @@
|
|||||||
|
|
||||||
public static class Extensions
|
public static class Extensions
|
||||||
{
|
{
|
||||||
public static T? Execute<T>(this PluginFunction @this, params object?[]? @params)
|
public static T? ExecuteIfEnabled<T>(this PluginFunction @this, params object?[]? @params)
|
||||||
{
|
{
|
||||||
return @this.Enabled ? @this.Execute<T>(@params) : default;
|
return @this.Enabled ? @this.Execute<T>(@params) : default;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static object? Execute(this PluginFunction @this, params object?[]? @params)
|
public static object? ExecuteIfEnabled(this PluginFunction @this, params object?[]? @params)
|
||||||
{
|
{
|
||||||
return @this.Enabled ? @this.Execute(@params) : default;
|
return @this.Enabled ? @this.Execute(@params) : default;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static T? Execute<T>(this PluginFunction @this, PluginFunctionSimpleParamter? @params)
|
public static T? ExecuteIfEnabled<T>(this PluginFunction @this, PluginFunctionSimpleParamter? @params)
|
||||||
{
|
{
|
||||||
return @this.Enabled ? @this.Execute<T>(@params) : default;
|
return @this.Enabled ? @this.Execute<T>(@params) : default;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static object? Execute(this PluginFunction @this, PluginFunctionParameter? @params)
|
public static object? ExecuteIfEnabled(this PluginFunction @this, PluginFunctionParameter? @params)
|
||||||
{
|
{
|
||||||
return @this.Enabled ? @this.Execute(@params) : default;
|
return @this.Enabled ? @this.Execute(@params) : default;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user