mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-04-04 04:18:22 +00:00
Layout
This commit is contained in:
23
Libraries/Esiur/Data/NullableAttribute.cs
Normal file
23
Libraries/Esiur/Data/NullableAttribute.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
namespace System.Runtime.CompilerServices
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, Inherited = false)]
|
||||
public sealed class NullableAttribute : Attribute
|
||||
{
|
||||
/// <summary>Flags specifying metadata related to nullable reference types.</summary>
|
||||
public readonly byte[] NullableFlags;
|
||||
|
||||
/// <summary>Initializes the attribute.</summary>
|
||||
/// <param name="value">The flags value.</param>
|
||||
public NullableAttribute(byte value)
|
||||
{
|
||||
NullableFlags = new[] { value };
|
||||
}
|
||||
|
||||
/// <summary>Initializes the attribute.</summary>
|
||||
/// <param name="value">The flags value.</param>
|
||||
public NullableAttribute(byte[] value)
|
||||
{
|
||||
NullableFlags = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user