openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Generated/Internal/CodeGenSerializationAttribute.cs
31lines · modecode
| 1 | // <auto-generated/> |
| 2 | |
| 3 | #nullable disable |
| 4 | |
| 5 | using System; |
| 6 | |
| 7 | namespace OpenAI |
| 8 | { |
| 9 | [AttributeUsage((AttributeTargets.Class | AttributeTargets.Struct), AllowMultiple = true, Inherited = true)] |
| 10 | internal partial class CodeGenSerializationAttribute : Attribute |
| 11 | { |
| 12 | public CodeGenSerializationAttribute(string propertyName) |
| 13 | { |
| 14 | PropertyName = propertyName; |
| 15 | } |
| 16 | |
| 17 | public CodeGenSerializationAttribute(string propertyName, string propertySerializationName) |
| 18 | { |
| 19 | PropertyName = propertyName; |
| 20 | PropertySerializationName = propertySerializationName; |
| 21 | } |
| 22 | |
| 23 | public string PropertyName { get; } |
| 24 | |
| 25 | public string PropertySerializationName { get; set; } |
| 26 | |
| 27 | public string SerializationValueHook { get; set; } |
| 28 | |
| 29 | public string DeserializationValueHook { get; set; } |
| 30 | } |
| 31 | } |
| 32 | |