Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
DynamicOptionsAttribute.cs
1using System;
2
4{
8 [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = true, Inherited = true)]
9 public class DynamicOptionsAttribute : Attribute
10 {
11 private readonly string methodName;
12
18 {
19 this.methodName = MethodName;
20 }
21
25 public string MethodName => this.methodName;
26 }
27}
Defines a method that returns an array of options to display when editing the parameter.
DynamicOptionsAttribute(string MethodName)
Defines a method that returns an array of options to display when editing the parameter.
string MethodName
Name of method on object that can be used to retrieve a dynamic set of options.