Files
sbox-public/engine/Sandbox.System/Attributes/MethodArgumentsAttribute.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

19 lines
525 B
C#

using System;
namespace Sandbox;
/// <summary>
/// Specify the types of arguments a method should have. Typically used with event attributes to throw an exception
/// if an event attribute is added to a method with incorrect arguments.
/// </summary>
[AttributeUsage( AttributeTargets.Class, Inherited = true )]
public class MethodArgumentsAttribute : System.Attribute
{
public Type[] ArgumentTypes { get; set; }
public MethodArgumentsAttribute( params Type[] argumentTypes )
{
ArgumentTypes = argumentTypes;
}
}