openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Utility/Generator/CodeGenSuppressAttribute.cs
16lines · modecode
| 1 | using System; |
| 2 | |
| 3 | namespace OpenAI; |
| 4 | |
| 5 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Struct, AllowMultiple = true)] |
| 6 | internal class CodeGenSuppressAttribute : Attribute |
| 7 | { |
| 8 | public string Member { get; } |
| 9 | public Type[] Parameters { get; } |
| 10 | |
| 11 | public CodeGenSuppressAttribute(string member, params Type[] parameters) |
| 12 | { |
| 13 | Member = member; |
| 14 | Parameters = parameters; |
| 15 | } |
| 16 | } |