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
public IAdditionalParameterConverter Converter { get; }
Property Value
Default
Gets the default value for the column.
public object Default { get; }
Property Value
Description
Gets a translatable description.
public ITranslation Description { get; }
Property Value
- ITranslation
Key
Gets the key ('BaseType').
public string Key { get; }
Property Value
Type
Gets the type of the value.
public Type Type { get; }
Property Value
ValidationRules
Gets the rules for the value as string.
public IEnumerable<ValidationRule> ValidationRules { get; }