Table of Contents

Class ValidateMatchRegularExpressionAttribute

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Marks a string field to indicate it should match a regular expression.

[AttributeUsage(AttributeTargets.Field)]
[Version(4, 3, 0)]
public class ValidateMatchRegularExpressionAttribute : ValidationAttribute
Inheritance
ValidateMatchRegularExpressionAttribute
Derived
Inherited Members
Extension Methods

Constructors

ValidateMatchRegularExpressionAttribute(string)

Initializes a new instance of the ValidateMatchRegularExpressionAttribute class.

Methods

IsValid(SerializedProperty)

Checks if the property matches the regular expression pattern.