Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
CollectionNameAttribute.cs
1using System;
2
4{
8 [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false, Inherited = true)]
9 public class CollectionNameAttribute : Attribute
10 {
11 private readonly string name;
12
18 : base()
19 {
20 this.name = Name;
21 }
22
26 public string Name => this.name;
27 }
28}
This attribute defines the name of the collection that will house objects of this type.
CollectionNameAttribute(string Name)
This attribute defines the name of the collection that will house objects of this type.