Table of Contents

Class EnforcedVersionAttribute

Namespace
Nucs.JsonSettings.Modulation
Assembly
Nucs.JsonSettings.dll

This attribute used to specify the default version that the loaded config must be when using VersioningModule

[AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = false)]
public sealed class EnforcedVersionAttribute : Attribute
Inheritance
EnforcedVersionAttribute
Inherited Members

Remarks

In-case of inheritence, it'll use the first attribute returnd which is the child's class attribute.

Constructors

EnforcedVersionAttribute(string)

public EnforcedVersionAttribute(string version)

Parameters

version string

Version.Parse(version)

EnforcedVersionAttribute(Version)

public EnforcedVersionAttribute(Version version)

Parameters

version Version

Properties

Version

The expected version of the loaded settings

public Version Version { get; set; }

Property Value

Version