| | 1 | | // Copyright (c) ZeroC, Inc. |
| | 2 | |
|
| | 3 | | namespace ZeroC.Slice; |
| | 4 | |
|
| | 5 | | /// <summary>Represents an assembly attribute for assemblies that contain Slice generated code.</summary> |
| | 6 | | [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] |
| | 7 | | public sealed class SliceAttribute : Attribute |
| | 8 | | { |
| | 9 | | /// <summary>Gets the name of the file that contains the Slice definitions.</summary> |
| 0 | 10 | | public string SourceFileName { get; } |
| | 11 | |
|
| | 12 | | /// <summary>Constructs a new instance of <see cref="SliceAttribute" />.</summary> |
| | 13 | | /// <param name="sourceFileName">The name of the source file.</param> |
| 152 | 14 | | public SliceAttribute(string sourceFileName) => SourceFileName = sourceFileName; |
| | 15 | | } |