C# Класс Cilador.Fody.Tests.Common.TypeValidatorBase

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Validate ( Type actualType ) : void

Validates the type.

ValidateParameters ( MethodInfo actualMethod, TypeValidatorBase returnTypeValidator ) : void

Validates a method against expected return and parameter types.

ValidatePropertyTypeAndAccessors ( PropertyInfo actualProperty, PropertyAccessorExpectations propertyAccessorExpectations, TypeValidatorBase propertyTypeValidator ) : void

Validates a property and its getter and/or setter.

ValidateType ( Type actualType, TypeValidatorBase typeValidator ) : void

Validates a type against expected generic argument types.

Описание методов

Validate() публичный абстрактный Метод

Validates the type.
public abstract Validate ( Type actualType ) : void
actualType System.Type
Результат void

ValidateParameters() публичный статический Метод

Validates a method against expected return and parameter types.
public static ValidateParameters ( MethodInfo actualMethod, TypeValidatorBase returnTypeValidator ) : void
actualMethod System.Reflection.MethodInfo Method to validate.
returnTypeValidator TypeValidatorBase Expected return type.
Результат void

ValidatePropertyTypeAndAccessors() публичный статический Метод

Validates a property and its getter and/or setter.
public static ValidatePropertyTypeAndAccessors ( PropertyInfo actualProperty, PropertyAccessorExpectations propertyAccessorExpectations, TypeValidatorBase propertyTypeValidator ) : void
actualProperty System.Reflection.PropertyInfo Property to validate.
propertyAccessorExpectations PropertyAccessorExpectations Expected property accessors.
propertyTypeValidator TypeValidatorBase Validator for the type of the property.
Результат void

ValidateType() публичный статический Метод

Validates a type against expected generic argument types.
public static ValidateType ( Type actualType, TypeValidatorBase typeValidator ) : void
actualType System.Type Type to validate.
typeValidator TypeValidatorBase Expected types.
Результат void