Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
SectionAttribute.cs
1using System;
2
4{
8 [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
9 public class SectionAttribute : Attribute
10 {
11 private readonly int stringId;
12 private readonly string label;
13
18 public SectionAttribute(string Label)
19 : this(0, Label)
20 {
21 }
22
28 public SectionAttribute(int StringId, string Label)
29 {
30 this.stringId = StringId;
31 this.label = Label;
32 }
33
37 public int StringId => this.stringId;
38
42 public string Label => this.label;
43 }
44}
Places the parameter in a localizable section.
SectionAttribute(string Label)
Places the parameter in a section.
SectionAttribute(int StringId, string Label)
Places the parameter in a localizable section.
int StringId
String ID in the namespace of the current class, in the default language defined for the class.
string Label
Default label string, in the default language defined for the class.