Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
RegularExpressionAttribute.cs
1
using
System;
2
3
namespace
Waher.Things.Attributes
4
{
8
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple =
false
, Inherited =
true
)]
9
public
class
RegularExpressionAttribute
: Attribute
10
{
11
private
readonly
string
pattern;
12
17
public
RegularExpressionAttribute
(
string
Pattern
)
18
{
19
this.pattern =
Pattern
;
20
}
21
25
public
string
Pattern
=> this.pattern;
26
}
27
}
Waher.Things.Attributes.RegularExpressionAttribute
Validates input against a regular expression.
Definition:
RegularExpressionAttribute.cs:10
Waher.Things.Attributes.RegularExpressionAttribute.Pattern
string Pattern
Regular expression to validate against.
Definition:
RegularExpressionAttribute.cs:25
Waher.Things.Attributes.RegularExpressionAttribute.RegularExpressionAttribute
RegularExpressionAttribute(string Pattern)
Validates input against a regular expression.
Definition:
RegularExpressionAttribute.cs:17
Waher.Things.Attributes
Definition:
AlphaChannelAttribute.cs:4
IoTGateway
Things
Waher.Things
Attributes
RegularExpressionAttribute.cs
Generated by
1.9.5