Table of Contents

Class BaseTypeParameterDefinition

Namespace
Loehnert.TypeAndResult.Additional
Assembly
Loehnert.TypeAndResult.dll

Additional parameter definition for a base type name usually used with the TypeData class to inherit type data.

[AdditionalParameter(typeof(TypeData))]
public class BaseTypeParameterDefinition : IAdditionalParameterDefinition
Inheritance
BaseTypeParameterDefinition
Implements
Inherited Members

Examples

This example adds the BaseTypeParameter to the TypeData class.

[Export(typeof(IAdditionalParameterDefinition))]
[AdditionalParameter(typeof(TypeData))]
internal static IAdditionalParameterDefinition BaseTypeParameter { get; } = new BaseTypeParameterDefinition();

Properties

Converter

Gets a converter for Type to string.

public IAdditionalParameterConverter Converter { get; }

Property Value

IAdditionalParameterConverter

Default

Gets the default value for the column.

public object Default { get; }

Property Value

object

Description

Gets a translatable description.

public ITranslation Description { get; }

Property Value

ITranslation

Key

Gets the key ('BaseType').

public string Key { get; }

Property Value

string

Type

Gets the type of the value.

public Type Type { get; }

Property Value

Type

ValidationRules

Gets the rules for the value as string.

public IEnumerable<ValidationRule> ValidationRules { get; }

Property Value

IEnumerable<ValidationRule>

See Also