BooleanValidatorAttribute Class

Summary

Used to indicate that a property should be able to be converted into a bool.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Attributes
Base Types
graph BT Type-->Base0["ValidatorAttribute"] click Base0 "/api/NAnt.Core.Attributes/ValidatorAttribute" Base0-->Base1["Attribute"] Type["BooleanValidatorAttribute"] class Type type-node

Syntax

[AttributeUsage(AttributeTargets.Property, Inherited = true)]
public sealed class BooleanValidatorAttribute : ValidatorAttribute

Attributes

Type Description
AttributeUsageAttribute

Constructors

Name Summary
BooleanValidatorAttribute() Initializes a new instance of the NAnt.Core.Attributes.BooleanValidatorAttribute class.

Methods

Name Value Summary
Validate(Object) void
Checks if the specified value can be converted to a bool.